]> 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)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:18:18 +0000 (15:18 +0100)
commit000245b631cbc9dde4bebb0f378ec8cac5d60c07
tree29c48ca8e1933ab08a2108bc0294d19d926c4741
parent6facb9b2fae7b8cfc3a667d04ca89be6c190d8bb
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: Jiri Slaby <jslaby@suse.cz>
drivers/net/can/usb/esd_usb2.c