patch-2.4.27 linux-2.4.27/drivers/usb/audio.c
Next file: linux-2.4.27/drivers/usb/auermain.c
Previous file: linux-2.4.27/drivers/sound/pss.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2004-08-07 16:26:05.622386553 -0700
- Orig file:
linux-2.4.26/drivers/usb/audio.c
- Orig date:
2004-04-14 06:05:32.000000000 -0700
diff -urN linux-2.4.26/drivers/usb/audio.c linux-2.4.27/drivers/usb/audio.c
@@ -2141,6 +2141,8 @@
if (cmd == SOUND_MIXER_INFO) {
mixer_info info;
+
+ memset(&info, 0, sizeof(info));
strncpy(info.id, "USB_AUDIO", sizeof(info.id));
strncpy(info.name, "USB Audio Class Driver", sizeof(info.name));
info.modify_counter = ms->modcnt;
@@ -2150,6 +2152,8 @@
}
if (cmd == SOUND_OLD_MIXER_INFO) {
_old_mixer_info info;
+
+ memset(&info, 0, sizeof(info));
strncpy(info.id, "USB_AUDIO", sizeof(info.id));
strncpy(info.name, "USB Audio Class Driver", sizeof(info.name));
if (copy_to_user((void *)arg, &info, sizeof(info)))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)