diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e65fe3a7c3e42c69e2e47ee6df4efc9fa618b3d5..c5c82a7bdadc4b0aa8d354a405c203b76e7d3be8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1025,6 +1025,9 @@ static int soc_dai_link_sanity_check(struct snd_soc_card *card, void snd_soc_remove_pcm_runtime(struct snd_soc_card *card, struct snd_soc_pcm_runtime *rtd) { + if (!rtd) + return; + lockdep_assert_held(&client_mutex); /*