aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-10-25 07:35:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-25 12:38:06 -0400
commit65a4cdbb170e4ec1a7fa0e94936d47e24a17b0e8 (patch)
tree4bafaa7254243b9453b87d453eb0a06fbc9a905a /drivers/usb
parentf525c05babc7938cc1d4236550fd8a659fb05960 (diff)
USB: mos7840: fix urb leak at release
Make sure control urb is freed at release. Cc: <stable@vger.kernel.org> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/mos7840.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index d6d4eeca8c68..35ad3f5c4c0e 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -2645,6 +2645,7 @@ static void mos7840_release(struct usb_serial *serial)
2645 del_timer_sync(&mos7840_port->led_timer1); 2645 del_timer_sync(&mos7840_port->led_timer1);
2646 del_timer_sync(&mos7840_port->led_timer2); 2646 del_timer_sync(&mos7840_port->led_timer2);
2647 } 2647 }
2648 usb_free_urb(mos7840_port->control_urb);
2648 kfree(mos7840_port->ctrl_buf); 2649 kfree(mos7840_port->ctrl_buf);
2649 kfree(mos7840_port->dr); 2650 kfree(mos7840_port->dr);
2650 kfree(mos7840_port); 2651 kfree(mos7840_port);