]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: only flush inited work during free
authorCurtis Malainey <cujomalainey@chromium.org>
Thu, 28 Nov 2019 01:13:58 +0000 (17:13 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 10:55:42 +0000 (10:55 +0000)
commit6e8d5bf2bf034f2d90e33ca6d383bc1877cd2ecc
tree7ca8a2263d94a0e034d6b94b8b01b270a6920c62
parent5830804666ff4cbf3abcb3aa7cce60edc18ad9ca
ASoC: core: only flush inited work during free

There are many paths to soc_free_pcm_runtime which can both have and
have not yet inited the workqueue yet. When we flush the queue when we
have not yet inited the queue we cause warnings to be printed.

An example is soc_cleanup_card_resources which is called by
snd_soc_bind_card which has multiple failure points before and after
soc_link_init -> soc_new_pcm which is where the queue is inited.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20191128011358.39234-1-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c