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

Commit ea4f734c authored by Srikanth Uyyala's avatar Srikanth Uyyala
Browse files

msm: camera_v2: fix close sequence of isp stats stream



Stats stream close is failing in dual vfe usecases, due to
wrong array index is used while deleting the stream.

Change-Id: I8fa4b73f257439b13bddadd1b4edd6d2a5508c69
Signed-off-by: default avatarSrikanth Uyyala <suyyala@codeaurora.org>
parent ec0348d9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -563,10 +563,11 @@ int msm_isp_release_stats_stream(struct vfe_device *vfe_dev, void *arg)
		stream_info->buffer_offset[i] = stream_info->buffer_offset[k];
	}

	stream_info->num_isp--;

	stream_info->vfe_dev[stream_info->num_isp] = NULL;
	stream_info->stream_handle[stream_info->num_isp] = 0;
	stream_info->buffer_offset[stream_info->num_isp] = 0;
	stream_info->num_isp--;
	stream_info->vfe_mask &= ~(1 << vfe_dev->pdev->id);
	if (stream_info->num_isp == 0)
		stream_info->state = STATS_AVAILABLE;