]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: check skb_linearize() return value
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 07:41:34 +0000 (09:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 10:08:33 +0000 (12:08 +0200)
commit3acc87300f443085c1ca49e218cc3ce1acf69535
tree06f820945bca59ef0aa6b8d8779c196c00519c21
parentd4c7179e2d3bae42b4a42355d14bb4fcec267297
mac80211: check skb_linearize() return value

The A-MSDU TX code (within TXQs) didn't always check the return value
of skb_linearize() properly, resulting in potentially passing a frag-
list SKB down to the driver even when it said it can't handle it. Fix
that.

Fixes: 51928b7f40f27 ("mac80211: add A-MSDU tx support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c