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

Commit ad46e613 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: isp2: fix close sequence of isp stats stream" into kernel.lnx.4.9.r27-rel

parents 78ac0de1 85769dbd
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;