OSDN Git Service

ALSA: line6: use dynamic buffers
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Apr 2019 16:04:11 +0000 (18:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 May 2019 12:42:41 +0000 (14:42 +0200)
commitd0a5000f10e7a568d03c25ad6d397451061a65c4
tree58c0574d6ae622355454dfa136ef9df27f41ac70
parent68d49ff47789a8bef15c6bacfb80cee95ccc23f7
ALSA: line6: use dynamic buffers

commit e5c812e84f0dece3400d5caf42522287e6ef139f upstream.

The line6 driver uses a lot of USB buffers off of the stack, which is
not allowed on many systems, causing the driver to crash on some of
them.  Fix this up by dynamically allocating the buffers with kmalloc()
which allows for proper DMA-able memory.

Reported-by: Christo Gouws <gouws.christo@gmail.com>
Reported-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Christo Gouws <gouws.christo@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/line6/driver.c
sound/usb/line6/podhd.c
sound/usb/line6/toneport.c