diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-08 18:25:17 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-11 21:14:20 +0200 |
commit | cdd0864a495a4c6a6f60cae854ca962cfa1f1026 (patch) | |
tree | 7c11948f84fdfd877c3603ec15fd08aed59a3ccf /drivers/net/wireless/wl12xx/wl1271_main.c | |
parent | iwlwifi: clear driver stations when going down (diff) | |
download | linux-cdd0864a495a4c6a6f60cae854ca962cfa1f1026.tar.xz linux-cdd0864a495a4c6a6f60cae854ca962cfa1f1026.zip |
wl1271: add missing spin_lock()
We should start the loop consistently with the "wl_lock" lock held.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 3e4b9fbe8a00..b61cd102752f 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c @@ -466,6 +466,7 @@ static void wl1271_irq_work(struct work_struct *work) intr = le32_to_cpu(wl->fw_status->intr); if (!intr) { wl1271_debug(DEBUG_IRQ, "Zero interrupt received."); + spin_lock_irqsave(&wl->wl_lock, flags); continue; } |