From dab2a32da08ba94182d5a75f1c2da55dcb2d636f Mon Sep 17 00:00:00 2001 From: Mohan Kumar Date: Fri, 10 Mar 2023 10:42:13 +0530 Subject: [PATCH] ASoC: tegra-virt-alt: Fix coverity issue Fix uninitialized scalar variable in adsp_admaif_dt_params structure CID 10166577 Bug 3952896 Change-Id: Ief007160f049ab34d2d3a50e20895dbd3c73efe7 Signed-off-by: Mohan Kumar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2868887 Reviewed-by: svcacv Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Sameer Pujar Reviewed-by: Sharad Gupta GVS: Gerrit_Virtual_Submit --- sound/soc/tegra-virt-alt/tegra_virt_ref_alt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra-virt-alt/tegra_virt_ref_alt.c b/sound/soc/tegra-virt-alt/tegra_virt_ref_alt.c index 2fcd5f69..dba7aaef 100644 --- a/sound/soc/tegra-virt-alt/tegra_virt_ref_alt.c +++ b/sound/soc/tegra-virt-alt/tegra_virt_ref_alt.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include @@ -63,7 +63,7 @@ static int tegra_virt_machine_driver_probe(struct platform_device *pdev) char buffer[30]; int32_t adsp_admaif_bits, adsp_admaif_format; int32_t adsp_admaif_channels; - struct snd_soc_pcm_stream adsp_admaif_dt_params; + struct snd_soc_pcm_stream adsp_admaif_dt_params = { }; struct snd_soc_pcm_runtime *rtd; match = tegra_virt_machine_of_match;