mac80211: check skb_linearize() return value
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 07:41:34 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:19 +0000 (15:21 +0200)
commit5c091f61e600b5b2b996b5f7fc8c840fee8db809
treedddd288ecc38c567cd01126c8b1ed6e4fa9bd537
parentb0e88ea4a43f44403d4e97fd2054f1b380a8f842
mac80211: check skb_linearize() return value

commit 0b97a484e52cb423662eb98904aad82dafcc1f10 upstream.

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: 6e0456b545456 ("mac80211: add A-MSDU tx support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tx.c