Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214989
b: refs/heads/master
c: 2234362
h: refs/heads/master
i:
  214987: 29569b7
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 5, 2010
1 parent b8abdad commit ffc0ed3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1ae1edf9e9872d3aa657cc34ae40c9aadfbc72f
refs/heads/master: 2234362c427e2ef667595b9b81c0125003ac5607
11 changes: 7 additions & 4 deletions trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,13 @@ static int nl80211_set_channel(struct sk_buff *skb, struct genl_info *info)

result = get_rdev_dev_by_info_ifindex(info, &rdev, &netdev);
if (result)
goto unlock;
goto unlock_rtnl;

result = __nl80211_set_channel(rdev, netdev->ieee80211_ptr, info);

unlock:
dev_put(netdev);
cfg80211_unlock_rdev(rdev);
unlock_rtnl:
rtnl_unlock();

return result;
Expand Down Expand Up @@ -5097,7 +5099,7 @@ static int nl80211_set_cqm_rssi(struct genl_info *info,

err = get_rdev_dev_by_info_ifindex(info, &rdev, &dev);
if (err)
goto unlock_rdev;
goto unlock_rtnl;

wdev = dev->ieee80211_ptr;

Expand All @@ -5115,9 +5117,10 @@ static int nl80211_set_cqm_rssi(struct genl_info *info,
err = rdev->ops->set_cqm_rssi_config(wdev->wiphy, dev,
threshold, hysteresis);

unlock_rdev:
unlock_rdev:
cfg80211_unlock_rdev(rdev);
dev_put(dev);
unlock_rtnl:
rtnl_unlock();

return err;
Expand Down

0 comments on commit ffc0ed3

Please sign in to comment.