diff options
author | Su Hui | 2023-06-15 10:17:32 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-07-19 16:21:30 +0200 |
commit | d28b83252e150155b8b8c65b612c555e93c8b45f (patch) | |
tree | 7e680eb0595fea5036efba40de5fb70bf5fc47c4 /sound/xen/xen_snd_front.h | |
parent | 96bafece6ff380138896f009141fd7337070e680 (diff) |
ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer
[ Upstream commit 79597c8bf64ca99eab385115743131d260339da5 ]
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: da3cec35dd3c ("ALSA: Kill snd_assert() in sound/pci/*")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20230615021732.1972194-1-suhui@nfschina.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/xen/xen_snd_front.h')
0 files changed, 0 insertions, 0 deletions