diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index f15b1af2c768..4ff827e8c362 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -4990,7 +4990,7 @@ static int nl80211_set_power_save(struct sk_buff *skb, struct genl_info *info) | |||
4990 | 4990 | ||
4991 | err = get_rdev_dev_by_info_ifindex(info, &rdev, &dev); | 4991 | err = get_rdev_dev_by_info_ifindex(info, &rdev, &dev); |
4992 | if (err) | 4992 | if (err) |
4993 | goto unlock_rdev; | 4993 | goto unlock_rtnl; |
4994 | 4994 | ||
4995 | wdev = dev->ieee80211_ptr; | 4995 | wdev = dev->ieee80211_ptr; |
4996 | 4996 | ||
@@ -5014,6 +5014,7 @@ static int nl80211_set_power_save(struct sk_buff *skb, struct genl_info *info) | |||
5014 | unlock_rdev: | 5014 | unlock_rdev: |
5015 | cfg80211_unlock_rdev(rdev); | 5015 | cfg80211_unlock_rdev(rdev); |
5016 | dev_put(dev); | 5016 | dev_put(dev); |
5017 | unlock_rtnl: | ||
5017 | rtnl_unlock(); | 5018 | rtnl_unlock(); |
5018 | 5019 | ||
5019 | out: | 5020 | out: |