diff options
| author | KaiChieh Chuang <[email protected]> | 2018-02-05 05:00:00 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-02-07 11:15:26 +0000 |
| commit | 28735af3f59af8388ff5317f1faa3cf532af5dcf (patch) | |
| tree | 5716acd7cd003434a607d96b9831df8de0612533 /net/unix/af_unix.c | |
| parent | Linux 4.15-rc1 (diff) | |
| download | kernel-28735af3f59af8388ff5317f1faa3cf532af5dcf.tar.gz kernel-28735af3f59af8388ff5317f1faa3cf532af5dcf.zip | |
ASoC: dapm: fix debugfs read using path->connected
This fix a bug in dapm_widget_power_read_file(),
where it may sent opposite order of source/sink widget
into the p->connected().
for example,
static int connected_check(source, sink);
{"w_sink", NULL, "w_source", connected_check}
the dapm_widget_power_read_file() will query p->connected()
in following case
p->conneted("w_source", "w_sink")
p->conneted("w_sink", "w_source")
we should avoid the last case, since it's the wrong order (source/sink)
as declared in snd_soc_dapm_route.
Signed-off-by: KaiChieh Chuang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
