]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cfg80211: fix BSS double-unlinking
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Oct 2010 19:18:04 +0000 (21:18 +0200)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:00 +0000 (23:40 +0100)
commit8c344624d82e34d805d9250b942158f652e9ac75
tree5c0272abf74106189343479584c9a9ffc5f68e69
parent207b45e2615ea1bca44e6efcda22f5d01e66f3f0
cfg80211: fix BSS double-unlinking

commit 3207390a8b58bfc1335750f91cf6783c48ca19ca upstream.

When multiple interfaces are actively trying
to associate with the same BSS, they may both
find that the BSS isn't there and then try to
unlink it. This can cause errors since the
unlinking code can't currently deal with items
that have already been unlinked.

Normally this doesn't happen as most people
don't try to use multiple station interfaces
that associate at the same time too.

Fix this by using the list entry as a flag to
see if the item is still on a list.

Reported-by: Ben Greear <greearb@candelatech.com>
Tested-by: Hun-Kyi Wynn <hkwynn@candelatech.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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/wireless/scan.c