nl80211: fix error in generic netif_running check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Oct 2010 19:34:11 +0000 (21:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Oct 2010 20:30:41 +0000 (16:30 -0400)
commitd537f5fdfcc9c57c1e3b9fb316a4bed2bf7597e7
treeb81381e11aad48e7f068b061d037e5ac190a6211
parente31b82136d1adc7a599b6e99d3321e5831841f5a
nl80211: fix error in generic netif_running check

Yikes! The error return keeps a netdev reference
and the rdev mutex locked, fix that!

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