Unverified Commit 6325766d authored by Thorsten Blum's avatar Thorsten Blum Committed by Mark Brown
Browse files

ASoC: sdw_utils: Fix potential NULL pointer deref in is_sdca_endpoint_present()



Check the return value of kzalloc() and exit early to avoid a potential
NULL pointer dereference.

Cc: stable@vger.kernel.org
Fixes: 4f8ef33d ("ASoC: soc_sdw_utils: skip the endpoint that doesn't present")
Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250610103225.1475-2-thorsten.blum@linux.dev


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