]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04bb87c83291942008d945c295590c7503ef5083
treed33a5994b4dd8f7d0c5e4e8128569763ca57b2ff
parent74b3608ad9f929476e4ba9dd5384797d58f616c0
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