Search Linux Wireless

Re: [PATCH] mac80211: correct skb allocation

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

 



> > -     skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom + 1 +
> > -                                     sizeof(mgmt->u.action.u.addba_resp));
> > +     skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom);
> > +
>
> Forgive my ignorant, unresearched question... :-)  What was the "+1"
> and why is it no longer necessary?
>
> John

originaly it was for the category field, but the union covers it as well

ron
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux