cfg80211: fix refcount imbalance when wext is disabled
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 11 Jan 2010 15:14:57 +0000 (16:14 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 00:37:09 +0000 (19:37 -0500)
commit8c5d9808e95739c9001b852464fd58fd0f583280
treeb784444a3f86577b41cb30723f2aebd8dfc2eb0b
parent193e70ef65a6c33f2935ce1f4adeb08ecb9202cf
cfg80211: fix refcount imbalance when wext is disabled

When CONFIG_CFG80211_WEXT is not set, there is
a refcount imbalance with rdev->opencount, fix
that by moving it out of the ifdef.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c