Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rt1320: fix the warning 'rae_fw' from request_firmware() not released

New smatch warnings:
sound/soc/codecs/rt1320-sdw.c:1575 rt1320_rae_load() warn: 'rae_fw' from
request_firmware() not released on lines: 1575.

Fixes: 22937af75abb ("ASoC: rt1320: support RAE parameters loading")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202604111548.EL450PMb-lkp@intel.com/
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20260414071441.1524039-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shuming Fan and committed by
Mark Brown
cf162476 54a032d3

+1
+1
sound/soc/codecs/rt1320-sdw.c
··· 1498 1498 } 1499 1499 if (!retry && !(value & 0x40)) { 1500 1500 dev_err(dev, "%s: RAE is not ready to load\n", __func__); 1501 + release_firmware(rae_fw); 1501 1502 return -ETIMEDOUT; 1502 1503 } 1503 1504