nl80211: Fix exit from nl80211_set_power_save
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Fri, 24 Sep 2010 04:23:55 +0000 (07:23 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Sep 2010 19:57:47 +0000 (15:57 -0400)
commit92e44948b2b3b2db8f39f17033f98ae2356156a5
treefd617ba0a5d939cbe03cfb579ee3e39c46fe2255
parent56af326830757f3e8a1742770d15dfd6e3c40e85
nl80211: Fix exit from nl80211_set_power_save

If interface does not existk, when nl80211_set_power_save is called, (eg.
module has been unloaded) it has been causing kernel panic. Added new
goto target to avoid crash if get_rdev_dev_by_info_ifindex does not
return dev and rdev pointers.

Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c