From: Johan Hovold Date: Thu, 25 Oct 2012 11:35:09 +0000 (+0200) Subject: USB: mos7840: fix urb leak at release X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65a4cdbb170e4ec1a7fa0e94936d47e24a17b0e8;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git USB: mos7840: fix urb leak at release Make sure control urb is freed at release. Cc: Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index d6d4eeca8c6..35ad3f5c4c0 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) 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);