Browse Source

msm: camera: reqmgr: Add missing spin unlock call

In cam_req_mgr_cb_notify_trigger add missing spin unlock
call. In case of IRQ delays the API returns without invoking
unlock.

CRs-Fixed: 2975974
Change-Id: I1dc87e457b7c6d9d099ddb54d31be8fc2476f360
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 4 years ago
parent
commit
ae190c6af9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 1 - 0
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -3605,6 +3605,7 @@ static int cam_req_mgr_cb_notify_trigger(
 	if (link->sof_timestamp == trigger_data->sof_timestamp_val) {
 		CAM_DBG(CAM_CRM,
 			"Irq delay, skipping apply");
+		spin_unlock_bh(&link->link_state_spin_lock);
 		return 0;
 	}