浏览代码

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

Wasim Khan 1 年之前
父节点
当前提交
d15a414b70
共有 1 个文件被更改,包括 1 次插入0 次删除
  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",
 				"SAFE SCM call failed:Check TZ/HYP dependency, ctx_idx: %u",
 				ctx->ctx_index);
 				ctx->ctx_index);
 			rc = -EFAULT;
 			rc = -EFAULT;
+			mutex_unlock(&g_ife_hw_mgr.ctx_mutex);
 			goto deinit_hw;
 			goto deinit_hw;
 		}
 		}
 	}
 	}