aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMurad Masimov <[email protected]>2024-10-11 01:16:45 +0300
committerTakashi Iwai <[email protected]>2024-10-11 11:14:06 +0200
commitc9bd4a82b4ed32c6d1c90500a52063e6e341517f (patch)
tree2412d4af083c738df7a7640d1e0029fad4bd6b20 /lib/crypto/mpi/mpi-sub-ui.c
parentad6639f143a0b42d7fb110ad14f5949f7c218890 (diff)
ALSA: hda/cs8409: Fix possible NULL dereference
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions