projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035ebf6
)
can: esd_usb2: fix memory leak on disconnect
author
Alexey Khoroshilov
<khoroshilov@ispras.ru>
Fri, 10 Oct 2014 20:31:07 +0000
(
00:31
+0400)
committer
Danny Wood
<danwood76@gmail.com>
Tue, 29 Jan 2019 13:05:17 +0000
(13:05 +0000)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/usb/esd_usb2.c
b/drivers/net/can/usb/esd_usb2.c
index 6aa7b3266c80904d8d2f2106869085a8b19d5248..d5455c7606187551effafa94138d0fddd7aad506 100644
(file)
--- a/
drivers/net/can/usb/esd_usb2.c
+++ b/
drivers/net/can/usb/esd_usb2.c
@@
-1132,6
+1132,7
@@
static void esd_usb2_disconnect(struct usb_interface *intf)
}
}
unlink_all_urbs(dev);
+ kfree(dev);
}
}