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

Commit 85769dbd authored by VijayaKumar T M's avatar VijayaKumar T M Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp2: fix close sequence of isp stats stream



Stats stream close is failing due to wrong array index(2)
for rear camera which uses dual vfe.

Change-Id: I332d36c34a9a7a933e35d4099e0402734328fb4f
Signed-off-by: default avatarVijayaKumar T M <vtmuni@codeaurora.org>
parent d579df9d
Loading
Loading
Loading
Loading
+2 −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
@@ -550,10 +550,10 @@ 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;