can: ems_usb: Fix memory leak on ems_usb_disconnect()

commit 72c05f32f4 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Anton Vasilyev 2018-07-27 18:50:42 +03:00 • committed by Ben Hutchings
commit 0df8731c99