mac80211: fix tx->skb NULL pointer dereference
authorYoni Divinsky <yoni.divinsky@ti.com>
Mon, 16 Jan 2012 13:18:59 +0000 (15:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Jan 2012 20:01:16 +0000 (15:01 -0500)
commitd32a102819eef99d4d87019266bea208447be0a0
treeff6484ac0f843dc48c24db2604bfbef1424967e0
parent331d9301ed4d0fe33e9762c62f2870243bcf77eb
mac80211: fix tx->skb NULL pointer dereference

In function ieee80211_tx_h_encrypt the var info was
initialized from tx->skb, since the fucntion
is called after the function ieee80211_tx_h_fragment
tx->skb is not valid anymore.

Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c
net/mac80211/wpa.c
net/mac80211/wpa.h