]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: dapm: Fix source list debugfs outputs
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 13:21:49 +0000 (14:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:08:09 +0000 (12:08 +0900)
commit ff18620c2157671a8ee21ebb8e6a3520ea209b1f upstream.

... due to a copy & paste error.

Spotted by coverity CID 710923.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c

index 4375c9f2b791006717f807cdddcb343bb0f8074c..8e90cbed07d867e0bb1ea4e509ff4965962a2827 100644 (file)
@@ -1810,7 +1810,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)