From: Takashi Iwai Date: Mon, 28 Oct 2013 13:21:49 +0000 (+0100) Subject: ASoC: dapm: Fix source list debugfs outputs X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=2ca317899d45d60805b0b5dc9b6f879a8f93f7c6;p=linux-edison.git ASoC: dapm: Fix source list debugfs outputs commit ff18620c2157671a8ee21ebb8e6a3520ea209b1f upstream. ... due to a copy & paste error. Spotted by coverity CID 710923. Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 360638362e9..c2ecb4e0159 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1797,7 +1797,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, w->active ? "active" : "inactive"); list_for_each_entry(p, &w->sources, list_sink) { - if (p->connected && !p->connected(w, p->sink)) + if (p->connected && !p->connected(w, p->source)) continue; if (p->connect)