mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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 <quic_tungaral@quicinc.com> Signed-off-by: basappa <quic_basappa@quicinc.com>
This commit is contained in:
parent
8d2afad305
commit
c90d923bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -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 <linux/clk.h>
|
||||
#include <linux/delay.h>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue