From f49b4dd0b9179677aa177b248fc383593cc625f4 Mon Sep 17 00:00:00 2001 From: Wyes Karny Date: Mon, 15 Nov 2021 13:08:06 +0530 Subject: [PATCH] msm: camera: cdm: Fix deadlock issue in CDM handle error Fix deadlock issue in CDM handle error. CRs-Fixed: 3073203 Change-Id: Ia63e1841fc00e74e4c03a1d6b28e94814748aa8f Signed-off-by: Wyes Karny --- drivers/cam_cdm/cam_cdm_hw_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cam_cdm/cam_cdm_hw_core.c b/drivers/cam_cdm/cam_cdm_hw_core.c index 583963a0d6e2..bd1e938a0d0f 100644 --- a/drivers/cam_cdm/cam_cdm_hw_core.c +++ b/drivers/cam_cdm/cam_cdm_hw_core.c @@ -1809,11 +1809,9 @@ int cam_hw_cdm_handle_error_info( if (node != NULL) { if (node->request_type == CAM_HW_CDM_BL_CB_CLIENT) { - mutex_lock(&cdm_hw->hw_mutex); cam_cdm_notify_clients(cdm_hw, CAM_CDM_CB_STATUS_HW_ERROR, (void *)node); - mutex_unlock(&cdm_hw->hw_mutex); } else if (node->request_type == CAM_HW_CDM_BL_CB_INTERNAL) { CAM_ERR(CAM_CDM, "Invalid node=%pK %d", node, node->request_type);