mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-09 00:23:01 -05:00
cfg80211: fix wiphy remove if no regulatory request
Fixes the segfault I just pointed out. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
8bef7a1001
commit
4a4f4d805d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user