mac80211: use ieee80211_free_txskb to fix possible skb leaks
commitfd39be7ff6f81f2dc91ba6e5f87944abef5b4802
authorFelix Fietkau <nbd@openwrt.org>
Mon, 8 Oct 2012 12:39:33 +0000 (8 14:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:32:41 +0000 (21 09:32 -0700)
tree240a9de5916592f388177b6dad792460f8af822a
parente36434d7c5606b6e16d1851cc99c0325cff91447
mac80211: use ieee80211_free_txskb to fix possible skb leaks

commit c3e7724b6bc2f25e46c38dbe68f09d71fafeafb8 upstream.

A few places free skbs using dev_kfree_skb even though they're called
after ieee80211_subif_start_xmit might have cloned it for tracking tx
status. Use ieee80211_free_txskb here to prevent skb leaks.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/status.c
net/mac80211/tx.c