浏览代码

msm: camera: isp: Release mutex in case of error

Mutex unlock was missing in CSID driver in case the drv clk rate
call fails. This can result in recursive locking situations.
This commit handles the error scenario.

Change-Id: Ie1e60006713f0a96831ec1174bec1b40ab460a1f
CRs-Fixed: 3712878
Signed-off-by: Gaurav Jindal <[email protected]>
Gaurav Jindal 1 年之前
父节点
当前提交
629c599958
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

+ 1 - 1
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -5458,7 +5458,7 @@ int cam_ife_csid_ver2_start(void *hw_priv, void *args,
 		if (rc) {
 			CAM_ERR(CAM_ISP, "Failed in setting cesta clk rates, client_idx:%d rc:%d",
 				csid_hw->hw_intf->hw_idx, rc);
-			return rc;
+			goto end;
 		}
 
 		if (csid_hw->sync_mode != CAM_ISP_HW_SYNC_SLAVE) {