]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: Fix potential interrupt storm
authorIdo Yariv <ido@wizery.com>
Wed, 11 Jan 2012 07:42:41 +0000 (09:42 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:28 +0000 (08:38 +0200)
commit398757231aa14728975a177fc3f4c31c2c5f8f41
tree3f7af09f3b7ff2380701eeb0764e170903182765
parent69b414d23b4df84afe3eaadbc37174e45afd349f
wl12xx: Fix potential interrupt storm

The interrupt threaded handler exits immediately if the driver's state
is WL1271_STATE_OFF. As a result, the interrupt status is not read. If
the interrupt is level triggered, it will be fired again.

Fix this by disabling interrupts before setting the state to OFF.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c