]> 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)
commitb2b932071c032e142ccdf6c53c8ecada6cea7f26
treea462673b1cfe119f0bb6221e5fcc31fbf48cc345
parent77da5191aea42dbba8c074493627303d4e31dca7
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