From 07fa34730b34df9d5634bd29f9f7e003a6c1f7ad Mon Sep 17 00:00:00 2001 From: Dipesh Gandhi Date: Tue, 29 Mar 2016 16:02:07 +0530 Subject: [PATCH] sound: soc: tegra-alt: Fix Out-of-bounds read It fixes Coverity defect of logically Out-of-bounds read. Coverity ID: 20425 Bug 200116059 Change-Id: I77c0c90f23beb7bf8938fc9ab3701d1ad8065267 Signed-off-by: Dipesh Gandhi Reviewed-on: http://git-master/r/1115850 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Nitin Pai --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index cfa342b2..a29e0d97 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -126,7 +126,7 @@ struct tegra210_adsp { struct tegra210_adsp_path { uint32_t fe_reg; uint32_t be_reg; - } pcm_path[ADSP_FE_END+1][2]; + } pcm_path[ADSP_FE_COUNT+1][2]; }; static const struct snd_pcm_hardware adsp_pcm_hardware = {