can: gs_usb: fix memory leak in gs_cmd_reset()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 4 Jun 2017 12:03:42 +0000 (14:03 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Jun 2017 09:39:23 +0000 (11:39 +0200)
commit5cda3ee5138e91ac369ed9d0b55eab0dab077686
tree65eaafa32c2607bcb15edf6fa89ca09bcdd78004
parentdadcd398b3f059a0aa9de1cac8030a1d5a3791a5
can: gs_usb: fix memory leak in gs_cmd_reset()

This patch adds the missing kfree() in gs_cmd_reset() to free the
memory that is not used anymore after usb_control_msg().

Cc: linux-stable <stable@vger.kernel.org>
Cc: Maximilian Schneider <max@schneidersoft.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c