diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e9da95ebccc837dd4407df814c9799870009931c..1120d669fe2e33680587873ccff1d3226340e4fe 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -958,6 +958,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); /* release machine specific resources */