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

Commit 0e57ffd0 authored by Mukund Madhusudan Atre's avatar Mukund Madhusudan Atre
Browse files

msm: camera: isp: Avoid dereference for unavailable port in ife out



During deinit, we are dereferencing resource data even for unavailable
out resource. Avoid dereferencing NULL pointer during vfe deinit out
resource.

CRs-Fixed: 2584631
Change-Id: I8488ccf73f62c551fc9d6ce3d636b10d8b0c7b8c
Signed-off-by: default avatarMukund Madhusudan Atre <matre@codeaurora.org>
parent 90d0abfb
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2400,9 +2400,6 @@ static int cam_vfe_bus_ver3_deinit_vfe_out_resource(
		 * This is not error. It can happen if the resource is
		 * never supported in the HW.
		 */
		CAM_DBG(CAM_ISP, "VFE:%d out_type:%d already deinitialized",
			rsrc_data->common_data->core_index,
			rsrc_data->out_type);
		return 0;
	}