[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230712024408.316793-1-13916275206@139.com>
Date: Wed, 12 Jul 2023 10:44:08 +0800
From: Shenghao Ding <13916275206@....com>
To: broonie@...nel.org, devicetree@...r.kernel.org, robh+dt@...nel.org,
lgirdwood@...il.com, perex@...ex.cz,
pierre-louis.bossart@...ux.intel.com
Cc: kevin-lu@...com, shenghao-ding@...com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, liam.r.girdwood@...el.com,
mengdong.lin@...el.com, x1077012@...com, peeyush@...com,
navada@...com, tiwai@...e.de, Shenghao Ding <13916275206@....com>
Subject: [PATCH v1] ALSA: hda/tas2781: fix 'fw_entry' is used uninitialized
Fix 'fw_entry' is used uninitialized.
Signed-off-by: Shenghao Ding <13916275206@....com>
Changes in v1:
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307070922.doxi1HFc-lkp@intel.com/
---
sound/soc/codecs/tas2781-fmwlib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/tas2781-fmwlib.c b/sound/soc/codecs/tas2781-fmwlib.c
index eb55abae0d7b..0b08e24ed23a 100644
--- a/sound/soc/codecs/tas2781-fmwlib.c
+++ b/sound/soc/codecs/tas2781-fmwlib.c
@@ -1908,7 +1908,7 @@ int tas2781_load_calibration(void *context, char *file_name,
{
struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context;
struct tasdevice *tasdev = &(tas_priv->tasdevice[i]);
- const struct firmware *fw_entry;
+ const struct firmware *fw_entry = NULL;
struct tasdevice_fw *tas_fmw;
struct firmware fmw;
int offset = 0;
--
2.34.1
Powered by blists - more mailing lists