]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
b43legacy: fix shared IRQ race condition
authorStefano Brivio <stefano.brivio@polimi.it>
Wed, 7 Nov 2007 17:33:37 +0000 (18:33 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 10 Nov 2007 09:25:13 +0000 (04:25 -0500)
commit440cb58a7aa979fabb02a38e55bfe93adde0f41c
tree3b7f4276bb0eece22ba23f1b1ce651d8c537807c
parenta19d12d742903c745890c1374d64092595571e40
b43legacy: fix shared IRQ race condition

Fix an IRQ race condition in b43legacy. If we call
b43legacy_wireless_core_stop(), it will set the status of the device to
INITIALIZED and the IRQ handler won't care any longer about IRQs, thus the
kernel will disable the IRQ if it's shared (unless we boot it with the
'irqpoll' option). So we must disable IRQs before changing the device
status.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/main.c