]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: esd_usb2: fix memory leak on disconnect
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 10 Oct 2014 20:31:07 +0000 (00:31 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:26 +0000 (15:57 -0800)
commit686fad7a92fecdf8bcffeaa6c726af9d1267ddac
tree91f0de29e935905bbafd0d21489a27c7824b9505
parentaf080c3fd4ddb9d0ca63664f3f4a9150b17f7256
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