On Tue, Jun 18, 2013 at 04:49:32PM +0200, Johannes Berg wrote: > On Fri, 2013-06-14 at 14:15 +0200, Simon Wunderlich wrote: > > > +static struct cfg80211_beacon_data * > > +cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon) > > +{ > > + struct cfg80211_beacon_data *new_beacon; > > + new_beacon = kzalloc(sizeof(*new_beacon), GFP_KERNEL); > > + if (!beacon) > > + return NULL; > > Why not allocate one bigger block and use pointers into it? There's no > (reasonable) way that it'd get really big ... Yeah, can do that.
Attachment:
signature.asc
Description: Digital signature