Skip to content

Commit cf16247

Browse files
shumingfanbroonie
authored andcommitted
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: 22937af ("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>
1 parent 54a032d commit cf16247

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/codecs/rt1320-sdw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,7 @@ static int rt1320_rae_load(struct rt1320_sdw_priv *rt1320)
14981498
}
14991499
if (!retry && !(value & 0x40)) {
15001500
dev_err(dev, "%s: RAE is not ready to load\n", __func__);
1501+
release_firmware(rae_fw);
15011502
return -ETIMEDOUT;
15021503
}
15031504

0 commit comments

Comments
 (0)