]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: match only assigned bss in sta_info_get_bss
authorJohannes Berg <johannes.berg@intel.com>
Tue, 14 Sep 2010 19:34:14 +0000 (21:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:14:27 +0000 (16:14 -0400)
commit6d27c9a35f4c16df2567364ca12e7107467a09fc
tree3a5177c062d839e0c93998e2706e45a9fcd1852f
parentc17c49b01495820c77160ce4d4ab6916dfafdd88
mac80211: match only assigned bss in sta_info_get_bss

sta_info_get_bss() is used to match STA pointers
for VLAN/AP interfaces, but if the same station
is also added to multiple other interfaces it
will erroneously match because both pointers are
NULL, fix this by ignoring NULL pointers here.

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c