diff options
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index e71f5a66574e..77e926738014 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -2037,6 +2037,10 @@ static int __set_regdom(const struct ieee80211_regdomain *rd) | |||
2037 | } | 2037 | } |
2038 | 2038 | ||
2039 | request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx); | 2039 | request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx); |
2040 | if (!request_wiphy) { | ||
2041 | reg_set_request_processed(); | ||
2042 | return -ENODEV; | ||
2043 | } | ||
2040 | 2044 | ||
2041 | if (!last_request->intersect) { | 2045 | if (!last_request->intersect) { |
2042 | int r; | 2046 | int r; |