Browse Source

Merge "msm: camera: isp: Release mutex in case of error" into camera-kernel.lnx.7.0

Wasim Khan 1 year ago
parent
commit
d15a414b70
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

+ 1 - 0
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -8129,6 +8129,7 @@ static int cam_ife_mgr_start_hw(void *hw_mgr_priv, void *start_hw_args)
 				"SAFE SCM call failed:Check TZ/HYP dependency, ctx_idx: %u",
 				ctx->ctx_index);
 			rc = -EFAULT;
+			mutex_unlock(&g_ife_hw_mgr.ctx_mutex);
 			goto deinit_hw;
 		}
 	}