net: can: usb: gs_usb: Fix buffer on stack
authorMaksim Salau <maksim.salau@gmail.com>
Sun, 23 Apr 2017 17:31:40 +0000 (20:31 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 25 Apr 2017 12:08:35 +0000 (14:08 +0200)
commitb05c73bd1e3ec60357580eb042ee932a5ed754d5
treed33a5994b4dd8f7d0c5e4e8128569763ca57b2ff
parent71b611562f45e8798d519a38d0143d5eafd6eb35
net: can: usb: gs_usb: Fix buffer on stack

Allocate buffers on HEAP instead of STACK for local structures
that are to be sent using usb_control_msg().

Signed-off-by: Maksim Salau <maksim.salau@gmail.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