projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ed133
)
ath9k: fix a null pointer deref issue
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 7 Dec 2010 18:22:43 +0000
(18:22 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 7 Dec 2010 18:22:43 +0000
(18:22 +0000)
SVN-Revision: 24312
package/mac80211/patches/320-pending_work.patch
patch
|
blob
|
history
diff --git
a/package/mac80211/patches/320-pending_work.patch
b/package/mac80211/patches/320-pending_work.patch
index 44d8df2e0352b3fa65caf715bcd0699c2c3ad58a..38bf6fb9fb57b4f2019967dcc18dd7cc5e74ef93 100644
(file)
--- a/
package/mac80211/patches/320-pending_work.patch
+++ b/
package/mac80211/patches/320-pending_work.patch
@@
-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;
+