aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-07-23 22:03:51 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-23 22:03:51 -0400
commit74d154189d597b91da4322996dbf4f5c3d1544ab (patch)
tree6f09861b5e2f875d2d8ea2127b16add9103221c6 /net/wireless
parent5a6338db37885af06760d40cad589316e48431e9 (diff)
parentffafa60d496f80c250f2ae0340ae94434c0b0b4d (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/iwmc3200wifi/netdev.c net/wireless/scan.c
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c5
-rw-r--r--net/wireless/scan.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 2a04beba4369..4478760b7dc3 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1010,7 +1010,7 @@ static int nl80211_get_key(struct sk_buff *skb, struct genl_info *info)
1010 1010
1011 if (IS_ERR(hdr)) { 1011 if (IS_ERR(hdr)) {
1012 err = PTR_ERR(hdr); 1012 err = PTR_ERR(hdr);
1013 goto out; 1013 goto free_msg;
1014 } 1014 }
1015 1015
1016 cookie.msg = msg; 1016 cookie.msg = msg;
@@ -1024,7 +1024,7 @@ static int nl80211_get_key(struct sk_buff *skb, struct genl_info *info)
1024 &cookie, get_key_callback); 1024 &cookie, get_key_callback);
1025 1025
1026 if (err) 1026 if (err)
1027 goto out; 1027 goto free_msg;
1028 1028
1029 if (cookie.error) 1029 if (cookie.error)
1030 goto nla_put_failure; 1030 goto nla_put_failure;
@@ -1035,6 +1035,7 @@ static int nl80211_get_key(struct sk_buff *skb, struct genl_info *info)
1035 1035
1036 nla_put_failure: 1036 nla_put_failure:
1037 err = -ENOBUFS; 1037 err = -ENOBUFS;
1038 free_msg:
1038 nlmsg_free(msg); 1039 nlmsg_free(msg);
1039 out: 1040 out:
1040 cfg80211_unlock_rdev(rdev); 1041 cfg80211_unlock_rdev(rdev);
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 4f552c3f29a3..decc59fe0ee8 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -48,8 +48,6 @@ void __cfg80211_scan_done(struct work_struct *wk)
48 else 48 else
49 nl80211_send_scan_done(wiphy_to_dev(request->wiphy), dev); 49 nl80211_send_scan_done(wiphy_to_dev(request->wiphy), dev);
50 50
51 wiphy_to_dev(request->wiphy)->scan_req = NULL;
52
53#ifdef CONFIG_WIRELESS_EXT 51#ifdef CONFIG_WIRELESS_EXT
54 if (!request->aborted) { 52 if (!request->aborted) {
55 memset(&wrqu, 0, sizeof(wrqu)); 53 memset(&wrqu, 0, sizeof(wrqu));
@@ -62,6 +60,7 @@ void __cfg80211_scan_done(struct work_struct *wk)
62 60
63 out: 61 out:
64 cfg80211_unlock_rdev(rdev); 62 cfg80211_unlock_rdev(rdev);
63 wiphy_to_dev(request->wiphy)->scan_req = NULL;
65 kfree(request); 64 kfree(request);
66} 65}
67 66