projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f2e39
)
cfg80211: fix crash in cfg80211_set_freq()
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 15 May 2010 13:46:17 +0000
(15:46 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 21 May 2010 18:40:00 +0000
(14:40 -0400)
Since wdev can be NULL, check it before dereferencing it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/chan.c
patch
|
blob
|
history
diff --git
a/net/wireless/chan.c
b/net/wireless/chan.c
index d92d088026bf885e30607f81799781a4c94c2794..b01a6f6397d7be03659547f98f06569011ffac77 100644
(file)
--- a/
net/wireless/chan.c
+++ b/
net/wireless/chan.c
@@
-50,7
+50,7
@@
int cfg80211_set_freq(struct cfg80211_registered_device *rdev,
struct ieee80211_channel *chan;
int result;
- if (wdev->iftype == NL80211_IFTYPE_MONITOR)
+ if (wdev
&& wdev
->iftype == NL80211_IFTYPE_MONITOR)
wdev = NULL;
if (wdev) {