[lvc-project] [PATCH] ALSA: hda: cs35l41: Fix NULL pointer dereference in cs35l41_get_acpi_mute_state()

Takashi Iwai tiwai at suse.de
Sat Oct 11 09:30:25 MSK 2025


On Tue, 07 Oct 2025 09:38:31 +0200,
Denis Arefev wrote:
> 
> Return value of a function acpi_evaluate_dsm() is dereferenced  without
> checking for NULL, but it is usually checked for this function.
> 
> acpi_evaluate_dsm() may return NULL, when acpi_evaluate_object() returns
> acpi_status other than ACPI_SUCCESS, so add a check to prevent the crach.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 447106e92a0c ("ALSA: hda: cs35l41: Support mute notifications for CS35L41 HDA")
> Cc: stable at vger.kernel.org
> Signed-off-by: Denis Arefev <arefev at swemel.ru>

Applied now.  Thanks.


Takashi



More information about the lvc-project mailing list