OSDN Git Service

mac80211: allocate tailroom for forwarded mesh packets
authorFelix Fietkau <nbd@nbd.name>
Fri, 22 Feb 2019 12:21:15 +0000 (13:21 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Feb 2019 13:00:40 +0000 (14:00 +0100)
commit51d0af222f6fa43134c6187ab4f374630f6e0d96
treedef295a74f625bd48a3bddd55f2e25b7ce01d2ee
parent5c14a4d05f68415af9e41a4e667d1748d41d1baf
mac80211: allocate tailroom for forwarded mesh packets

Forwarded packets enter the tx path through ieee80211_add_pending_skb,
which skips the ieee80211_skb_resize call.
Fixes WARN_ON in ccmp_encrypt_skb and resulting packet loss.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c