linux_dsm_epyc7002/sound/usb
Wenwen Wang cbb88db76a ALSA: usx2y: fix a double free bug
In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb()
and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through
kmalloc() and saved to 'usX2Y->In04Buf'. If the allocation of the buffer
fails, the error code ENOMEM is returned after usb_free_urb(), which frees
the created urb. However, the urb is actually freed at card->private_free
callback, i.e., snd_usX2Y_card_private_free(). So the free operation here
leads to a double free bug.

To fix the above issue, simply remove usb_free_urb().

Signed-off-by: Wenwen Wang <wang6495@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-04-29 19:56:41 +02:00
..
6fire
bcd2000
caiaq ALSA: caiaq: Add fall-through annotation 2018-10-12 09:31:26 +02:00
hiface
line6 Merge branch 'topic/pcm-device-suspend' into for-next 2019-01-18 17:37:21 +01:00
misc
usx2y ALSA: usx2y: fix a double free bug 2019-04-29 19:56:41 +02:00
card.c Merge branch 'topic/pcm-device-suspend' into for-next 2019-01-18 17:37:21 +01:00
card.h ALSA: usb-audio: Expose sample resolution through proc interface 2019-02-18 09:36:09 +01:00
clock.c
clock.h
debug.h
endpoint.c ALSA: usb-audio: remove redundant pointer 'urb' 2018-08-01 14:00:32 +02:00
endpoint.h
format.c ALSA: usb-audio: Expose sample resolution through proc interface 2019-02-18 09:36:09 +01:00
format.h
helper.c
helper.h
Kconfig
Makefile ALSA: usb-audio: Initial Power Domain support 2018-07-31 15:01:22 +02:00
midi.c ALSA: rawmidi: A lightweight function to discard pending bytes 2018-10-04 20:13:17 +02:00
midi.h
mixer_maps.c
mixer_quirks.c ALSA: usb: Clean up with new procfs helpers 2019-02-06 18:11:57 +01:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
mixer_us16x08.c
mixer_us16x08.h
mixer.c ALSA: usb-audio: Fix a memory leak bug 2019-04-28 09:11:50 +02:00
mixer.h ALSA: usb-audio: Declare the common variable in header file 2018-07-26 08:32:00 +02:00
pcm.c ALSA: usb-audio: Add quirk for MOTU MicroBook II 2019-02-28 22:23:11 +01:00
pcm.h ALSA: usb-audio: Add UAC3 Power Domains to suspend/resume 2018-07-31 15:01:36 +02:00
power.c ALSA: usb-audio: Initial Power Domain support 2018-07-31 15:01:22 +02:00
power.h ALSA: usb-audio: Initial Power Domain support 2018-07-31 15:01:22 +02:00
proc.c ALSA: usb-audio: Expose sample resolution through proc interface 2019-02-18 09:36:09 +01:00
proc.h
quirks-table.h ALSA: usb-audio: Add quirk for Focusrite Scarlett Solo 2019-04-15 11:37:27 +02:00
quirks.c ALSA: usb-audio: Add quirk for MOTU MicroBook II 2019-02-28 22:23:11 +01:00
quirks.h
stream.c ALSA: usb-audio: Always check descriptor sizes in parser code 2019-01-07 11:10:17 +01:00
stream.h
usbaudio.h