From c90d923bdd966f29940bd9e3bb8bd44716b92fec Mon Sep 17 00:00:00 2001 From: Thrithendra Ungarala Date: Tue, 23 Jul 2024 14:49:45 +0530 Subject: [PATCH] asoc: Fixed OOB issue in qcs405 Fixed OOB issue is in function msm_meta_mi2s_snd_shutdown Change-Id: I8be7d019eb9b89baaef71fa53dd6c7f2383181c0 Signed-off-by: Thrithendra Ungarala Signed-off-by: basappa --- asoc/qcs405.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/qcs405.c b/asoc/qcs405.c index 8b012c6c7ccd..0cdc7268a9d7 100644 --- a/asoc/qcs405.c +++ b/asoc/qcs405.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022,2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include @@ -7376,7 +7376,7 @@ static void msm_meta_mi2s_snd_shutdown(struct snd_pcm_substream *substream) pr_debug("%s(): substream = %s stream = %d\n", __func__, substream->name, substream->stream); - if (index < PRIM_MI2S || index >= MI2S_MAX) { + if (index < PRIM_MI2S || index >= META_MI2S_MAX) { pr_err("%s:invalid MI2S DAI(%d)\n", __func__, index); return; }