Bladeren bron

msm: camera: isp: Release mutex in case of error

Mutex unlock was missing in isp driver during hw manager init
This change adds the missing mutex unlock.

CRs-Fixed: 3711067
Change-Id: Ic12671fdb81c80b6b426c840b6a6887fb38a8b36
Signed-off-by: Vikram Sharma <[email protected]>
Signed-off-by: Chandan Kumar Jha <[email protected]>
Chandan Kumar Jha 1 jaar geleden
bovenliggende
commit
6dca977b60
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

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

@@ -8129,6 +8129,7 @@ static int cam_ife_mgr_start_hw(void *hw_mgr_priv, void *start_hw_args)
 				"SAFE SCM call failed:Check TZ/HYP dependency, ctx_idx: %u",
 				ctx->ctx_index);
 			rc = -EFAULT;
+			mutex_unlock(&g_ife_hw_mgr.ctx_mutex);
 			goto deinit_hw;
 		}
 	}