瀏覽代碼

msm: camera: isp: Handling override of error code variable

Handling override of error code variable by adding proper check.

CRs-Fixed: 3358685
Change-Id: I5f1040ef46b4789f8bf0ae5c38d4a7ddb4c15145
Signed-off-by: Yash Upadhyay <[email protected]>
Yash Upadhyay 2 年之前
父節點
當前提交
46c6ecdb5f
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

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

@@ -7223,7 +7223,12 @@ static int cam_ife_mgr_start_hw(void *hw_mgr_priv, void *start_hw_args)
 					CAM_IFE_CSID_TOP_CONFIG,
 					&csid_top_args,
 					sizeof(csid_top_args));
-
+				if (rc) {
+					CAM_ERR(CAM_ISP,
+						"CSID: %u top config cmd failed, rc:%d",
+						hw_intf->hw_idx, rc);
+					goto tasklet_stop;
+				}
 				CAM_DBG(CAM_ISP,
 					"CSID: %u split_id: %d core_idx: %u core_type: %u is_sfe_offline: %d",
 					hw_intf->hw_idx, i, csid_top_args.core_idx,