[lvc-project] [PATCH] ALSA: hda/cs8409: Fix possible NULL dereference
Takashi Iwai
tiwai at suse.de
Fri Oct 11 12:14:18 MSK 2024
On Fri, 11 Oct 2024 00:16:45 +0200,
Murad Masimov wrote:
>
> If snd_hda_gen_add_kctl fails to allocate memory and returns NULL, then
> NULL pointer dereference will occur in the next line.
>
> Since dolphin_fixups function is a hda_fixup function which is not supposed
> to return any errors, add simple check before dereference, ignore the fail.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 20e507724113 ("ALSA: hda/cs8409: Add support for dolphin")
> Signed-off-by: Murad Masimov <m.masimov at maxima.ru>
Thanks, applied.
Takashi
More information about the lvc-project
mailing list