From: Johan Hovold Date: Tue, 18 May 2010 22:01:38 +0000 (+0200) Subject: USB: kl5usb105: fix memory leak X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=313b0d80c1717ffe8f64b455a4d323996748b91a;p=linux-beck.git USB: kl5usb105: fix memory leak Private data was not freed on error path in startup. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 8eef91ba4b1c..cc0ba38d4748 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c @@ -321,6 +321,7 @@ err_cleanup: usb_free_urb(priv->write_urb_pool[j]); } } + kfree(priv); usb_set_serial_port_data(serial->port[i], NULL); } return -ENOMEM;