mac80211: Fix scan RX processing oops
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2008 00:29:55 +0000 (03:29 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 15 Oct 2008 01:08:11 +0000 (21:08 -0400)
commitd048e503a2b01e771ee87921c24d89d7ec3f0c2f
tree71df617d24f8ba4cc349b3588e9ee87a5b891b7a
parentc25bab54fe30d26a2cddf7058d77da72be630b23
mac80211: Fix scan RX processing oops

ieee80211_bss_info_update() can return NULL. Verify that this is not the
case before calling ieee802111_rx_bss_put() which would trigger an oops
in interrupt context in atomic_dec_and_lock().

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c