linux-stable/sound/soc/kirkwood
Aleksandr Mishin de9987cec6 ASoC: kirkwood: Fix potential NULL dereference
[ Upstream commit ea60ab9572 ]

In kirkwood_dma_hw_params() mv_mbus_dram_info() returns NULL if
CONFIG_PLAT_ORION macro is not defined.
Fix this bug by adding NULL check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: bb6a40fc5a ("ASoC: kirkwood: Fix reference to PCM buffer address")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Link: https://msgid.link/r/20240328173337.21406-1-amishin@t-argos.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:03:22 +02:00
..
Kconfig
Makefile
armada-370-db.c ASoC: kirkwood: armada-370-db: mark OF related data as maybe unused 2020-11-26 13:07:04 +00:00
kirkwood-dma.c ASoC: kirkwood: Fix potential NULL dereference 2024-06-12 11:03:22 +02:00
kirkwood-i2s.c ASoC: kirkwood: fix device remove ordering 2019-10-23 18:20:55 +01:00
kirkwood.h