WSL2-Linux-Kernel/sound/usb
Jiri Slaby 272cbc98cf ALSA: usb/endpoint, fix dangling pointer use
Stanse found that in snd_usb_parse_audio_endpoints, there is a
dangling pointer dereference. When snd_usb_parse_audio_format fails,
fp is freed, and continue invoked. On the next loop, there is
"fp && fp->altsetting == 1 && fp->channels == 1" test, but fp is set
from the last iteration (but is bogus) and thus ilegally dereferenced.

Set fp to NULL before "continue".

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-21 17:07:58 +02:00
..
caiaq ALSA: snd-usb-caiaq: Bump version number to 1.3.21 2010-05-29 21:49:11 +02:00
misc Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-05-20 21:26:12 -07:00
usx2y
Kconfig
Makefile ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00
card.c ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00
card.h ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00
clock.c ALSA: usb-audio: fix control messages for USB_RECIP_INTERFACE 2010-06-11 18:05:38 +02:00
clock.h ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00
debug.h
endpoint.c ALSA: usb/endpoint, fix dangling pointer use 2010-06-21 17:07:58 +02:00
endpoint.h
format.c ALSA: usb-audio: parse UAC2 sample rate ranges correctly 2010-06-11 18:06:12 +02:00
format.h ALSA: usb-audio: parse more format descriptors with structs 2010-05-27 09:48:31 +02:00
helper.c
helper.h ALSA: usb-audio: fix control messages for USB_RECIP_INTERFACE 2010-06-11 18:05:38 +02:00
midi.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 2010-05-26 08:41:25 -07:00
midi.h ALSA: usb-audio: add support for Akai MPD16 2010-05-21 17:12:30 +02:00
mixer.c ALSA: usb-audio: fix UAC2 control value queries 2010-06-11 18:06:35 +02:00
mixer.h ALSA: usb-audio: support partially write-protected UAC2 controls 2010-05-31 18:15:57 +02:00
mixer_maps.c ALSA: usb-audio: unify constants from specification 2010-05-31 18:17:22 +02:00
mixer_quirks.c
mixer_quirks.h
pcm.c ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00
pcm.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: add support for Akai MPD16 2010-05-21 17:12:30 +02:00
quirks.c ALSA: usb-audio: add support for Akai MPD16 2010-05-21 17:12:30 +02:00
quirks.h
urb.c sound: fixup for usb_buffer_alloc/free rename 2010-05-20 21:15:18 -07:00
urb.h
usbaudio.h ALSA: usb-audio: parse clock topology of UAC2 devices 2010-05-31 18:16:59 +02:00