]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc012b9a2042314a321181851e44ef189d0be56eb
treea462673b1cfe119f0bb6221e5fcc31fbf48cc345
parent97baaf4b9c1df6fff8b34d334cd348494b3ae6da
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