]> git.baikalelectronics.ru Git - kernel.git/commit
can: gs_usb: Don't use stack memory for USB transfers
authorEthan Zonca <e@ethanzonca.com>
Fri, 24 Feb 2017 16:27:36 +0000 (11:27 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 3 Mar 2017 12:00:07 +0000 (13:00 +0100)
commit820cfa204146be54ac9bf75013550f273587d8a4
treec557bde084088248845ff1fac0b0cc9e82f8130a
parent2d09dbde92c80233e811ecbde88c9ba525151abe
can: gs_usb: Don't use stack memory for USB transfers

Fixes: 8abf31c379e9 can: gs_usb: add ethtool set_phys_id callback to locate physical device
The gs_usb driver is performing USB transfers using buffers allocated on
the stack. This causes the driver to not function with vmapped stacks.
Instead, allocate memory for the transfer buffers.

Signed-off-by: Ethan Zonca <e@ethanzonca.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v4.8
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c