Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7328823d authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by Mark Brown
Browse files

ASoC: wm_adsp: Release firmware on memory allocation failure

parent 43bc3bf6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -689,7 +689,8 @@ static int wm_adsp_load(struct wm_adsp *dsp)
						&buf_list);
			if (!buf) {
				adsp_err(dsp, "Out of memory\n");
				return -ENOMEM;
				ret = -ENOMEM;
				goto out_fw;
			}

			ret = regmap_raw_write_async(regmap, reg, buf->buf,