diff options
author | David S. Miller <davem@davemloft.net> | 2009-10-12 02:15:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-12 02:15:47 -0400 |
commit | 7fe13c5733790ef582769a54693fa6a5abf3c032 (patch) | |
tree | 567eb4394b642ddc81ff05521329d75d1cf47b88 /net/wireless | |
parent | 8aa0f64ac3835a6daf84d0b0e07c4c01d7d8eddc (diff) | |
parent | 10c435f18b8cb78a5870c08d52955594f5ec9c31 (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.c | 3 |
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 | } |