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

Commit c3a44ea3 authored by Jing Zhou's avatar Jing Zhou Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: icp: release mutex properly in flush function" into dev/msm-4.14-camx

parents 835460d2 e9d9471c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -3850,11 +3850,9 @@ static int cam_icp_mgr_hw_flush(void *hw_priv, void *hw_flush_args)
	switch (flush_args->flush_type) {
	case CAM_FLUSH_TYPE_ALL:
		mutex_lock(&hw_mgr->hw_mgr_mutex);
		if (!hw_mgr->recovery) {
			if (flush_args->num_req_active) {
		if (!hw_mgr->recovery && flush_args->num_req_active) {
			mutex_unlock(&hw_mgr->hw_mgr_mutex);
			cam_icp_mgr_abort_handle(ctx_data);
			}
		} else {
			mutex_unlock(&hw_mgr->hw_mgr_mutex);
		}