cfg80211: fix netns error unwinding bug
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 8 Oct 2009 19:02:02 +0000 (21:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Oct 2009 20:27:00 +0000 (16:27 -0400)
commit8a8e05e5d8f6155788761961fc9845328863c16d
treefc842a395135d7840b440d656cf31f0a7b1548f3
parent7e937c633f718e0916a294db7282c922c1bf3ce3
cfg80211: fix netns error unwinding bug

The error unwinding code in set_netns has a bug
that will make it run into a BUG_ON if passed a
bad wiphy index, fix by not trying to unlock a
wiphy that doesn't exist.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c