Skip to content

Commit c0ac2c0

Browse files
TanyaAgarwal25mehmetb0
authored andcommitted
ALSA: usb-audio: US16x08: Initialize array before use
BugLink: https://bugs.launchpad.net/bugs/2106632 [ Upstream commit b06a6187ef983f501e93faa56209169752d3bde3 ] Initialize meter_urb array before use in mixer_us16x08.c. CID 1410197: (#1 of 1): Uninitialized scalar variable (UNINIT) uninit_use_in_call: Using uninitialized value *meter_urb when calling get_meter_levels_from_urb. Coverity Link: https://scan7.scan.coverity.com/#/project-view/52849/11354?selectedIssue=1410197 Fixes: d2bb390 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk") Signed-off-by: Tanya Agarwal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Mehmet Basaran <[email protected]>
1 parent 1342145 commit c0ac2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/mixer_us16x08.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ static int snd_us16x08_meter_get(struct snd_kcontrol *kcontrol,
687687
struct usb_mixer_elem_info *elem = kcontrol->private_data;
688688
struct snd_usb_audio *chip = elem->head.mixer->chip;
689689
struct snd_us16x08_meter_store *store = elem->private_data;
690-
u8 meter_urb[64];
690+
u8 meter_urb[64] = {0};
691691

692692
switch (kcontrol->private_value) {
693693
case 0: {

0 commit comments

Comments
 (0)