From 26cf747681dbd7cc65fe3d550a8531b0d3a10f36 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Tue, 17 Oct 2017 00:19:36 +0530 Subject: [PATCH] qcacmn: Release the spin lock before return Currently in interrupt handler of per CE, spin lock is taken for send or receive and returns with out releasing the lock held if target register access is not allowed. This condition will lead to kernel panic if some other context is trying for the same lock. Change-Id: I115f6fbb006d28097168342aa4add3526ad3939d CRs-Fixed: 2077464 --- hif/src/ce/ce_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index 3e844cc03397..a7d5cef1bd7d 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -2103,7 +2103,7 @@ more_watermarks: HOST_IS_COPY_COMPLETE_MASK); } else { HIF_ERROR("%s: target access is not allowed", __func__); - return CE_state->receive_count; + goto unlock_end; } }