]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
USB: mos7840: fix urb leak at release
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 11:35:09 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:17 +0000 (10:10 -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

index 2f6da1e89bfa5606772103ce70f70087a9bfab42..23c06fd4a157ea17eb2c65b10ff55f495a5615de 100644 (file)
@@ -2754,6 +2754,7 @@ static void mos7840_release(struct usb_serial *serial)
                                del_timer_sync(&mos7840_port->led_timer1);
                                del_timer_sync(&mos7840_port->led_timer2);
                        }
+                       usb_free_urb(mos7840_port->control_urb);
                        kfree(mos7840_port->ctrl_buf);
                        kfree(mos7840_port->dr);
                        kfree(mos7840_port);