mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
ath9k: fix a null pointer deref issue
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24312 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
87b570ee61
commit
5dd2f7eb57
@ -2137,3 +2137,17 @@
|
||||
}
|
||||
|
||||
/* add interfaces */
|
||||
--- a/drivers/net/wireless/ath/ath9k/xmit.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
|
||||
@@ -1745,7 +1745,10 @@ int ath_tx_start(struct ieee80211_hw *hw
|
||||
int frmlen = skb->len + FCS_LEN;
|
||||
int q;
|
||||
|
||||
- txctl->an = (struct ath_node *)sta->drv_priv;
|
||||
+ /* NOTE: sta can be NULL according to net/mac80211.h */
|
||||
+ if (sta)
|
||||
+ txctl->an = (struct ath_node *)sta->drv_priv;
|
||||
+
|
||||
if (info->control.hw_key)
|
||||
frmlen += info->control.hw_key->icv_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user