projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a665e
)
USB: mos7840: fix urb leak at release
author
Johan Hovold
<jhovold@gmail.com>
Thu, 25 Oct 2012 11:35:09 +0000
(13:35 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 16:51:36 +0000
(09:51 -0700)
commit
65a4cdbb170e4ec1a7fa0e94936d47e24a17b0e8
upstream.
Make sure control urb is freed at release.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/mos7840.c
b/drivers/usb/serial/mos7840.c
index fd2463e6bd439115da0c8739a681e8bb8ef6d8b2..d79760c20f51b8caa23c4950b5306c08b6cfe099 100644
(file)
--- a/
drivers/usb/serial/mos7840.c
+++ b/
drivers/usb/serial/mos7840.c
@@
-2662,6
+2662,7
@@
static void mos7840_release(struct usb_serial *serial)
mos7840_port = mos7840_get_port_private(serial->port[i]);
dbg("mos7840_port %d = %p", i, mos7840_port);
if (mos7840_port) {
+ usb_free_urb(mos7840_port->control_urb);
kfree(mos7840_port->ctrl_buf);
kfree(mos7840_port->dr);
kfree(mos7840_port);