ALSA: line6: use dynamic buffers
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Apr 2019 16:04:11 +0000 (18:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 28 Apr 2019 16:40:26 +0000 (18:40 +0200)
commite5c812e84f0dece3400d5caf42522287e6ef139f
treea462673b1cfe119f0bb6221e5fcc31fbf48cc345
parent0700d3d117a7f110ddddbd83873e13652f69c54b
ALSA: line6: use dynamic buffers

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c
sound/usb/line6/podhd.c
sound/usb/line6/toneport.c