]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: check txrate for NULL
authorAmit Khatri <amit.khatri@samsung.com>
Mon, 30 Nov 2015 07:16:52 +0000 (12:46 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commitfe58d6d4e0927a813f386354f7464e7d171f8f1e
treed3bee2856598d8015314dfd90e424cfd2b7e2757
parent894fcb979749b436c4534d8bab8e2e698c986d42
mac80211_hwsim: check txrate for NULL

If the rate control algorithm messed up then the txrate pointer
here could be NULL - WARN and drop the packet from monitoring.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
[rewrite commit message, add warning]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c