Skip to content
Unverified Commit ea60ab95 authored by Aleksandr Mishin's avatar Aleksandr Mishin Committed by Mark Brown
Browse files

ASoC: kirkwood: Fix potential NULL dereference



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: bb6a40fc ("ASoC: kirkwood: Fix reference to PCM buffer address")
Signed-off-by: default avatarAleksandr Mishin <amishin@t-argos.ru>
Link: https://msgid.link/r/20240328173337.21406-1-amishin@t-argos.ru


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 559aebe4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment