diff options
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 0990059f7e48..9e5a9f975478 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1330,7 +1330,7 @@ int set_regdom(const struct ieee80211_regdomain *rd) | |||
1330 | /* Caller must hold cfg80211_drv_mutex */ | 1330 | /* Caller must hold cfg80211_drv_mutex */ |
1331 | void reg_device_remove(struct wiphy *wiphy) | 1331 | void reg_device_remove(struct wiphy *wiphy) |
1332 | { | 1332 | { |
1333 | if (!last_request->wiphy) | 1333 | if (!last_request || !last_request->wiphy) |
1334 | return; | 1334 | return; |
1335 | if (last_request->wiphy != wiphy) | 1335 | if (last_request->wiphy != wiphy) |
1336 | return; | 1336 | return; |