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

Commit d59f27c6 authored by Sumalatha Malothu's avatar Sumalatha Malothu Committed by Gerrit - the friendly Code Review server
Browse files

msm:camera:isp: Fix array index bound checks



Added check for max array index

Change-Id: I4f8a4b559c83c04577cd58376526668d29b6b723
Signed-off-by: default avatarSumalatha Malothu <smalot@codeaurora.org>
parent de5b1d1f
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
@@ -1215,7 +1215,7 @@ static void msm_isp_update_rdi_output_count(

	for (i = 0; i < stream_cfg_cmd->num_streams; i++) {
		if (HANDLE_TO_IDX(stream_cfg_cmd->stream_handle[i])
			> MAX_NUM_STREAM)
			>= MAX_NUM_STREAM)
			return;
		stream_info =
			&axi_data->stream_info[