From: Dan Carpenter Date: Sat, 8 May 2010 16:25:17 +0000 (+0200) Subject: wl1271: add missing spin_lock() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cdd0864a495a4c6a6f60cae854ca962cfa1f1026;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git wl1271: add missing spin_lock() We should start the loop consistently with the "wl_lock" lock held. Signed-off-by: Dan Carpenter Acked-by: Luciano Coelho Signed-off-by: John W. Linville --- 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; }