]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cfg80211: don't get expired BSSes
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Jul 2010 08:55:38 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:20 +0000 (11:09 -0700)
commitbfcd88d2b16638f74957a78c787e0284d7080284
tree1337f3ba573dcb1559d612810cb2d58db57c2e33
parent89b15fbbcb5e77845ea1d8e96e0973caa0749fed
cfg80211: don't get expired BSSes

commit ccb6c1360f8dd43303c659db718e7e0b24175db5 upstream.

When kernel-internal users use cfg80211_get_bss()
to get a reference to a BSS struct, they may end
up getting one that would have been removed from
the list if there had been any userspace access
to the list. This leads to inconsistencies and
problems.

Fix it by making cfg80211_get_bss() ignore BSSes
that cfg80211_bss_expire() would remove.

Fixes http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2180

Reported-by: Jiajia Zheng <jiajia.zheng@intel.com>
Tested-by: Jiajia Zheng <jiajia.zheng@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/wireless/scan.c