Skip to content
Commit 79597c8b authored by Su Hui's avatar Su Hui Committed by Takashi Iwai
Browse files

ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer

smatch error:
sound/pci/ac97/ac97_codec.c:2354 snd_ac97_mixer() error:
we previously assumed 'rac97' could be null (see line 2072)

remove redundant assignment, return error if rac97 is NULL.

Fixes: da3cec35

 ("ALSA: Kill snd_assert() in sound/pci/*")
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20230615021732.1972194-1-suhui@nfschina.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 58cc6133
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment