Amadeusz Sławiński 95b62395de ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry
[ Upstream commit 326b509238171d37402dbe308e154cc234ed1960 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-10 10:28:59 +02:00
..
2015-11-06 11:04:07 -08:00
2015-10-05 17:42:49 +01:00
2016-11-09 13:50:14 +00:00
2017-06-13 19:30:53 +01:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2016-04-28 18:16:04 +01:00
2016-01-27 20:23:20 +00:00
2017-05-14 19:14:10 +09:00
2017-07-18 14:46:20 +01:00
2017-10-21 10:59:02 +01:00
2015-12-19 12:02:18 +00:00
2016-10-24 18:03:14 +01:00
2016-10-24 18:31:38 +01:00
2017-04-05 18:21:01 +01:00
2016-06-26 12:28:13 +01:00
2018-01-02 20:31:04 +01:00
2018-10-18 09:16:21 +02:00
2017-03-20 11:24:05 +00:00
2020-01-12 12:11:57 +01:00
2017-04-05 18:22:27 +01:00