diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-25 13:35:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 10:03:00 -0700 |
commit | b296aacfcceb3e6511b5d5fe77b22f5840ebe290 (patch) | |
tree | be21962825bca000e82d52e84bc40f600501e4e0 /drivers | |
parent | 5b312595bebcd2216f8617778a55ccaa93fc5a51 (diff) | |
download | linux-3.10-b296aacfcceb3e6511b5d5fe77b22f5840ebe290.tar.gz linux-3.10-b296aacfcceb3e6511b5d5fe77b22f5840ebe290.tar.bz2 linux-3.10-b296aacfcceb3e6511b5d5fe77b22f5840ebe290.zip |
USB: mos7840: fix urb leak at release
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/mos7840.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index c1505c3c557..1d87d9d88d9 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -2657,6 +2657,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); |