aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index bc1ec2c26fd0..186b7f2a27b6 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2035,6 +2035,10 @@ static int __set_regdom(const struct ieee80211_regdomain *rd)
2035 } 2035 }
2036 2036
2037 request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx); 2037 request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx);
2038 if (!request_wiphy) {
2039 reg_set_request_processed();
2040 return -ENODEV;
2041 }
2038 2042
2039 if (!last_request->intersect) { 2043 if (!last_request->intersect) {
2040 int r; 2044 int r;