فهرست منبع

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) {