diff mbox

NET: nl80211, fix lock imbalance and netdev referencing

Message ID 1278507766-309-1-git-send-email-jirislaby@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jiri Slaby July 7, 2010, 1:02 p.m. UTC
None
diff mbox

Patch

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 85285b4..fbfac58 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -877,7 +877,7 @@  static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
 		int idx, mbm = 0;
 
 		if (!rdev->ops->set_tx_power) {
-			return -EOPNOTSUPP;
+			result = -EOPNOTSUPP;
 			goto bad_res;
 		}