cfg80211: fix wiphy remove if no regulatory request
Johannes Berg
maintainerPATCH 1/1 cfg80211: fix wiphy remove if no regulatory request
Fixes the segfault I just pointed out.
Signed-off-by Johannes Berg <[email protected]>
--- net/wireless/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/reg.c +1 -1
@@ -1330,7 +1330,7 @@ int set_regdom(const struct ieee80211_re/* 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 ;
Quoted 1 line · Johannes Berg
Fixes the segfault I just pointed out.
Thanks, the commit log should include the panic I guess though right?
Luis
Johannes Berg
maintainerQuoted 4 lines · Luis R. Rodriguez
Quoted 1 line · Johannes Berg
Fixes the segfault I just pointed out.
Thanks, the commit log should include the panic I guess though right?
Maybe, maybe not, it's fairly clear what's going on from the diff, I think.
johannes