diff options
author | John Crispin <john@openwrt.org> | 2015-01-30 08:06:28 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-01-30 08:06:28 +0000 |
commit | b86545c86dbb407b3d27f20d56fbaad3154c0d75 (patch) | |
tree | 93fe7a38e9aabdce00c823c966b935d378138de2 /package | |
parent | 539cd238928e9434895220fd674827ff77069dce (diff) | |
download | mtk-20170518-b86545c86dbb407b3d27f20d56fbaad3154c0d75.zip mtk-20170518-b86545c86dbb407b3d27f20d56fbaad3154c0d75.tar.gz mtk-20170518-b86545c86dbb407b3d27f20d56fbaad3154c0d75.tar.bz2 |
mac80211: fix NULL pointer crash in monitor frame injection TX path
This "patch to the patch" fixes a NULL pointer derefence crash in the new
intermediate software queues. The crash can be reproduced by injecting an
802.11 frame with a BSSID that does not belong to a configured vif. The
wperf tool (https://github.com/anyfi/wperf) may be convenient for doing
this.
Signed-off-by: Johan Almbladh <ja@anyfi.net>
SVN-Revision: 44220
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/mac80211/patches/321-mac80211-add-an-intermediate-software-queue-implemen.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/321-mac80211-add-an-intermediate-software-queue-implemen.patch b/package/kernel/mac80211/patches/321-mac80211-add-an-intermediate-software-queue-implemen.patch index ce5d4dc..a9e95ff 100644 --- a/package/kernel/mac80211/patches/321-mac80211-add-an-intermediate-software-queue-implemen.patch +++ b/package/kernel/mac80211/patches/321-mac80211-add-an-intermediate-software-queue-implemen.patch @@ -384,7 +384,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> + if (pubsta) { + u8 tid = skb->priority & IEEE80211_QOS_CTL_TID_MASK; + pubtxq = pubsta->txq[tid]; -+ } else { ++ } else if (vif) { + pubtxq = vif->txq; + } + |