ASoC: wm_adsp: Release firmware on memory allocation failure
Subsystems (3)
PATCH 1/1 ASoC: wm_adsp: Release firmware on memory allocation failure
Signed-off-by Dimitris Papastamos <[email protected]>
--- sound/soc/codecs/wm_adsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/wm_adsp.c +2 -1
@@ -630,7 +630,8 @@ static int wm_adsp_load(struct wm_adsp *dsp) GFP_KERNEL | GFP_DMA);if (!buf) {adsp_err (dsp,"Out of memory\n" ); -return -ENOMEM ; + ret = -ENOMEM ; + goto out_fw; } ret = regmap_raw_write(regmap, reg, buf,
Signature · 1 line
1.8.4.2
Mark Brown
maintainerQuoted 1 line · Dimitris Papastamos
Signed-off-by Dimitris Papastamos <[email protected]>
This doesn't apply against current code either, please check and resend.