Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd0864a authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

wl1271: add missing spin_lock()



We should start the loop consistently with the "wl_lock" lock held.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent db125c78
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}