wl1271: add missing spin_lock()
PATCH 7/9 wl1271: add missing spin_lock()
We should start the loop consistently with the "wl_lock" lock held.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/wireless/wl12xx/wl1271_main.c +1 -0
@@ -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 ; }
Quoted 9 lines · ext Dan Carpenter
We should start the loop consistently with the "
wl_lock" lock held.Signed-off-by Dan Carpenter <[email protected]>drivers/net/wireless/wl12xx/wl1271_main.c +0
-0
drivers/net/wireless/wl12xx/wl1271_main.c static void wl1271_irq_work(struct work_struct *work) · line 472
Quoted 7 lines
drivers/net/wireless/wl12xx/wl1271_main.c +1
-0@@ -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 ; }
Good catch. Thank you.
Acked-by Luciano Coelho <[email protected]>
Signature · 2 lines
Cheers, Luca.