can: esd_usb2: fix memory leak on disconnect
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 10 Oct 2014 20:31:07 +0000 (00:31 +0400)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:05:17 +0000 (13:05 +0000)
commitd4bd03a89b5212d43dc4f6d89deea060bf93f07c
tree010bb961f50f870e52a6af5847787e2bb1f29f19
parent035ebf6d4138d4d2b16243f0aac1116cd817372a
can: esd_usb2: fix memory leak on disconnect

commit efbd50d2f62fc1f69a3dcd153e63ba28cc8eb27f upstream.

It seems struct esd_usb2 dev is not deallocated on disconnect. The patch adds
the missing deallocation.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/esd_usb2.c