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)
commitc919a3069c775c1c876bec55e00b2305d5125caa
treec557bde084088248845ff1fac0b0cc9e82f8130a
parent9f674e48c13dcbc31ac903433727837795b81efe
can: gs_usb: Don't use stack memory for USB transfers

Fixes: 05ca5270005c 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