Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: usb-audio: Initialize status1 to fix uninitialized symbol errors

Initialize 'status1' with a default value to resolve the static analysis
smatch reported error "uninitialized symbol 'status1'".
The 'status1' variable is used to create a buff using "kmemdup".
So, ensure to initialize the value before it is read.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com>
Link: https://patch.msgid.link/20251204052201.16286-3-hariconscious@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

HariKrishna Sagala and committed by
Takashi Iwai
d740d52e 210d77cc

+1
+1
sound/usb/mixer_quirks.c
··· 2545 2545 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); 2546 2546 struct snd_usb_audio *chip = list->mixer->chip; 2547 2547 2548 + *status1 = 0; 2548 2549 CLASS(snd_usb_lock, pm)(chip); 2549 2550 if (pm.err < 0) 2550 2551 return pm.err;