Re: mac80211: Fix headroom allocation when forwarding mesh pkt

2017-01-11 Thread Masashi Honma
On 2017/01/11 23:39, Cedric Izoard wrote: - fwd_skb = skb_copy_expand(skb, local->tx_headroom, 0, GFP_ATOMIC); + fwd_skb = skb_copy_expand(skb, local->tx_headroom + + sdata->encrypt_headroom, 0, GFP_ATOMIC); if (!fwd_skb) { net_i

Re: mac80211: Fix headroom allocation when forwarding mesh pkt

2017-01-11 Thread Johannes Berg
On Wed, 2017-01-11 at 14:39 +, Cedric Izoard wrote: > This patch fix issue introduced by commit > "mac80211: Ensure enough headroom when forwarding mesh pkt" I reworded that, and replaced the commit reference with a Fixes: tag, please try to do that in the future. Applied, but I also reindent

mac80211: Fix headroom allocation when forwarding mesh pkt

2017-01-11 Thread Cedric Izoard
This patch fix issue introduced by commit "mac80211: Ensure enough headroom when forwarding mesh pkt" When forwarding mesh pkt, mac80211 may also add security header, and it must therefore be taken into account in the needed headroom. Signed-off-by: Cedric Izoard --- net/mac80211/rx.c | 3 ++-