Message ID | 1462822997-5059-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 0859a3f..dfd4405 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -2229,6 +2229,13 @@ static ssize_t dapm_widget_show_codec(struct snd_soc_codec *codec, char *buf) int count = 0; char *state = "not set"; + /* card won't be set for the dummy component, as a spot fix + * we're checking for that case specifically here but in future + * we will ensure that the dummy component looks like others. + */ + if (!codec->component.card) + return 0; + list_for_each_entry(w, &codec->component.card->widgets, list) { if (w->dapm != &codec->dapm) continue;