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

Commit 15757ba2 authored by Vijay Kumar TM's avatar Vijay Kumar TM
Browse files

msm:camera: unlock mutex before return



Checking stream status failure will return without
unlocking the acquired lock.

CRs-Fixed: 2149998
Change-Id: I5ed5cd8a4dfc02d0f6817078c7833b674465c988
Signed-off-by: default avatarVijay Kumar TM <vtmuni@codeaurora.org>
parent fc4b02af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -689,8 +689,10 @@ static int msm_isp_start_stats_stream(struct vfe_device *vfe_dev,
		vfe_dev->hw_info->stats_hw_info->num_stats_comp_mask;
	rc = vfe_dev->hw_info->vfe_ops.stats_ops.check_streams(
		stats_data->stream_info);
	if (rc < 0)
	if (rc < 0) {
		mutex_unlock(&vfe_dev->buf_mgr->lock);
		return rc;
	}

	for (i = 0; i < stream_cfg_cmd->num_streams; i++) {
		idx = STATS_IDX(stream_cfg_cmd->stream_handle[i]);