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:
8bef7a1
)
cfg80211: fix wiphy remove if no regulatory request
author
Johannes Berg
<johannes@sipsolutions.net>
Mon, 1 Dec 2008 11:07:56 +0000
(12:07 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 5 Dec 2008 14:35:45 +0000
(09:35 -0500)
Fixes the segfault I just pointed out.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c
patch
|
blob
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index 0990059f7e482ab92519098f67d7b584fa38ef63..9e5a9f9754782559533928ee9f6c43606cd6b32d 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-1330,7
+1330,7
@@
int set_regdom(const struct ieee80211_regdomain *rd)
/* Caller must hold cfg80211_drv_mutex */
void reg_device_remove(struct wiphy *wiphy)
{
- if (!last_request->wiphy)
+ if (!last_request
|| !last_request
->wiphy)
return;
if (last_request->wiphy != wiphy)
return;