Skip to content

Commit 9da7a5a

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: wm_adsp: Avoid attempt to free buffers that might still be in use
We should not free any buffers associated with writing out coefficients to the DSP until all the async writes have completed. This patch updates the out of memory path when allocating a new buffer to include a call to regmap_async_complete. Reported-by: JS Park <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
1 parent f114040 commit 9da7a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/codecs/wm_adsp.c

+1
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp)
13551355
file, blocks, pos - firmware->size);
13561356

13571357
out_fw:
1358+
regmap_async_complete(regmap);
13581359
release_firmware(firmware);
13591360
wm_adsp_buf_free(&buf_list);
13601361
out:

0 commit comments

Comments
 (0)