net: can: usb: gs_usb: Fix buffer on stack

commit b05c73bd1e upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Maksim Salau 2017-04-23 20:31:40 +03:00 • committed by Greg Kroah-Hartman
commit 4684be169a