]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: SDCA: Always free firmware in FDL path
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 22 Jul 2026 10:34:58 +0000 (11:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2026 20:10:13 +0000 (21:10 +0100)
commit7f64ccc374b2fe1f6a169182e95ab8e104cae406
tree17f3aed6dd4005b37b8b6c41f01272425e0347f9
parent6a50332e194f58b562d396ab772c34e8c9890c0f
ASoC: SDCA: Always free firmware in FDL path

In the case a disk firmware exists but is invalid and no SWFT firmware
exists fdl_load_file() will return without calling release_firmware().
Update the code to call this to ensure the firmware is released on the
error path.

Fixes: 71f7990a34cd ("ASoC: SDCA: Add FDL library for XU entities")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260722103500.872714-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_fdl.c