From 0e57ffd0a0e65c4a770690e82e5de8c98f12b2fd Mon Sep 17 00:00:00 2001 From: Mukund Madhusudan Atre Date: Mon, 17 Feb 2020 00:49:22 -0800 Subject: [PATCH] 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: Mukund Madhusudan Atre --- .../isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c index d6f66dffb6f5..ab84616885fd 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.c @@ -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; }