diff options
author | Su Hui <[email protected]> | 2023-06-15 10:17:32 +0800 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2023-06-15 08:41:40 +0200 |
commit | 79597c8bf64ca99eab385115743131d260339da5 (patch) | |
tree | 2b4352607db0839d04b136b97bc73d72f98521ce /lib/mpi/mpi-sub-ui.c | |
parent | 58cc6133cc27496c1f041f302e13c33f0867be8a (diff) |
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: da3cec35dd3c ("ALSA: Kill snd_assert() in sound/pci/*")
Signed-off-by: Su Hui <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions