can: ems_usb: Fix memory leak on ems_usb_disconnect()
authorAnton Vasilyev <vasilyev@ispras.ru>
Fri, 27 Jul 2018 15:50:42 +0000 (18:50 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Jul 2018 09:04:27 +0000 (11:04 +0200)
commit72c05f32f4a5055c9c8fe889bb6903ec959c0aad
tree23a4e4368faf6b12d2698f66a2ecf5f11bdc787d
parent25432eba9cd8f2ef5afef55be811b010a004b5fa
can: ems_usb: Fix memory leak on ems_usb_disconnect()

ems_usb_probe() allocates memory for dev->tx_msg_buffer, but there
is no its deallocation in ems_usb_disconnect().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c