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

Commit 9a91f420 authored by Manu Gautam's avatar Manu Gautam Committed by Gerrit - the friendly Code Review server
Browse files

usb: bam: Fix missing spin_unlock in sps events timer handler



Spin lock is acquired but not released in one of the error
paths of sps events timer handler.

Change-Id: Ia3a184dfb8767896585eeebeea7b20d2edcdc469
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent bd940499
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2656,6 +2656,7 @@ static void usb_bam_sps_events(enum sps_callback_case sps_cb_case, void *user)
		if (bam < 0 || bam >= MAX_BAMS) {
			pr_err("%s: Invalid bam, type=%d ,name=%s\n",
				__func__, bam, (char *)user);
			spin_unlock(&ctx->usb_bam_lock);
			return;
		}
		ctx = &msm_usb_bam[bam];