aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-10-12 02:15:47 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-12 02:15:47 -0400
commit7fe13c5733790ef582769a54693fa6a5abf3c032 (patch)
tree567eb4394b642ddc81ff05521329d75d1cf47b88 /net/wireless
parent8aa0f64ac3835a6daf84d0b0e07c4c01d7d8eddc (diff)
parent10c435f18b8cb78a5870c08d52955594f5ec9c31 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 14004e2ebd62..f48394126bf9 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4031,7 +4031,7 @@ static int nl80211_wiphy_netns(struct sk_buff *skb, struct genl_info *info)
4031 rdev = cfg80211_get_dev_from_info(info); 4031 rdev = cfg80211_get_dev_from_info(info);
4032 if (IS_ERR(rdev)) { 4032 if (IS_ERR(rdev)) {
4033 err = PTR_ERR(rdev); 4033 err = PTR_ERR(rdev);
4034 goto out; 4034 goto out_rtnl;
4035 } 4035 }
4036 4036
4037 net = get_net_ns_by_pid(pid); 4037 net = get_net_ns_by_pid(pid);
@@ -4051,6 +4051,7 @@ static int nl80211_wiphy_netns(struct sk_buff *skb, struct genl_info *info)
4051 put_net(net); 4051 put_net(net);
4052 out: 4052 out:
4053 cfg80211_unlock_rdev(rdev); 4053 cfg80211_unlock_rdev(rdev);
4054 out_rtnl:
4054 rtnl_unlock(); 4055 rtnl_unlock();
4055 return err; 4056 return err;
4056} 4057}