소스 검색

Merge "msm: camera: isp: Fix for NULL dereference for failure case of dual IFE" into camera-kernel.lnx.4.0

Haritha Chintalapati 4 년 전
부모
커밋
07152233db
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

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

@@ -1909,7 +1909,7 @@ acquire_successful:
 				break;
 		}
 
-		if (j == CAM_IFE_CSID_HW_NUM_MAX) {
+		if (j == -1 || !csid_acquire.node_res) {
 			CAM_ERR(CAM_ISP,
 				"Can not acquire ife csid dual resource");
 			goto end;