Search Linux Wireless

Re: [PATCHv2 3/5] mac80211: add functions to duplicate a cfg80211_beacon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux