summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core-card.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2020-04-15 12:28:49 -0400
committerMark Brown <broonie@kernel.org>2020-04-16 13:01:33 +0100
commit326b509238171d37402dbe308e154cc234ed1960 (patch)
treedc81b4eb669fcf3a6afb954e49f7ffb38cc6ab38 /drivers/firewire/core-card.c
parent5bd70440cb0a6f5c6a84019bb2aa93ab8310a5cd (diff)
downloadlinux-326b509238171d37402dbe308e154cc234ed1960.tar.gz
linux-326b509238171d37402dbe308e154cc234ed1960.tar.bz2
linux-326b509238171d37402dbe308e154cc234ed1960.zip
ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry
If we don't find any pcm, pcm will point at address at an offset from the the list head and not a meaningful structure. Fix this by returning correct pcm if found and NULL if not. Found with coccinelle. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20200415162849.308-1-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/firewire/core-card.c')
0 files changed, 0 insertions, 0 deletions