aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-08 18:25:17 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-05-11 15:14:20 -0400
commitcdd0864a495a4c6a6f60cae854ca962cfa1f1026 (patch)
tree7c11948f84fdfd877c3603ec15fd08aed59a3ccf /drivers/net/wireless
parentdb125c787bc2c07ad97ba94707b653885d723a40 (diff)
downloadkernel_samsung_smdk4412-cdd0864a495a4c6a6f60cae854ca962cfa1f1026.zip
kernel_samsung_smdk4412-cdd0864a495a4c6a6f60cae854ca962cfa1f1026.tar.gz
kernel_samsung_smdk4412-cdd0864a495a4c6a6f60cae854ca962cfa1f1026.tar.bz2
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')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c1
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 3e4b9fb..b61cd10 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;
}