]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit836531a119260e5fed1472a0e24070618a6274a0
treefc842a395135d7840b440d656cf31f0a7b1548f3
parent6dc014e86b99ac311b66827249d645a1c47c4b80
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