Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c861a8d9 authored by Wyes Karny's avatar Wyes Karny Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Fix for NULL dereference for failure case of dual IFE



In the case of dual IFE acquire if left CSID reserve fails there is a
possibility of NULL pointer dereference.

CRs-Fixed: 2823225
Change-Id: Ib2bef582f69b245ee1d5b5b9ee8f5dacf8e2607a
Signed-off-by: default avatarWyes Karny <wkarny@codeaurora.org>
parent 35c58f92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1909,7 +1909,7 @@ static int cam_ife_mgr_acquire_cid_res(
				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;