]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: mrfld: fix incorrect check on p->sink
authorColin Ian King <colin.king@canonical.com>
Tue, 19 Nov 2019 11:36:40 +0000 (11:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 05:59:04 +0000 (07:59 +0200)
commit5bd70be66c0cdba064cc290249d9ead466a980e5
tree826b146b6c3477149721d2790e68b73f5624a154
parentb845d41ffc346b2fd2e44d89e51a0af2cffa3168
ASoC: Intel: mrfld: fix incorrect check on p->sink

commit f5e056e1e46fcbb5f74ce560792aeb7d57ce79e6 upstream.

The check on p->sink looks bogus, I believe it should be p->source
since the following code blocks are related to p->source. Fix
this by replacing p->sink with p->source.

Fixes: 24c8d14192cc ("ASoC: Intel: mrfld: add DSP core controls")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Copy-paste error")
Link: https://lore.kernel.org/r/20191119113640.166940-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/atom/sst-atom-controls.c