OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db125c7
)
wl1271: add missing spin_lock()
author
Dan Carpenter
<error27@gmail.com>
Sat, 8 May 2010 16:25:17 +0000
(18:25 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 11 May 2010 19:14:20 +0000
(15:14 -0400)
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>
drivers/net/wireless/wl12xx/wl1271_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl12xx/wl1271_main.c
b/drivers/net/wireless/wl12xx/wl1271_main.c
index
3e4b9fb
..
b61cd10
100644
(file)
--- 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;
}