diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 9a16e9e6c5ca..f82cc9aa6908 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -1935,12 +1935,9 @@ static int nl80211_set_reg(struct sk_buff *skb, struct genl_info *info) | |||
1935 | mutex_lock(&cfg80211_drv_mutex); | 1935 | mutex_lock(&cfg80211_drv_mutex); |
1936 | r = set_regdom(rd); | 1936 | r = set_regdom(rd); |
1937 | mutex_unlock(&cfg80211_drv_mutex); | 1937 | mutex_unlock(&cfg80211_drv_mutex); |
1938 | if (r) | ||
1939 | goto bad_reg; | ||
1940 | |||
1941 | return r; | 1938 | return r; |
1942 | 1939 | ||
1943 | bad_reg: | 1940 | bad_reg: |
1944 | kfree(rd); | 1941 | kfree(rd); |
1945 | return -EINVAL; | 1942 | return -EINVAL; |
1946 | } | 1943 | } |