From: Johan Hovold Date: Tue, 18 May 2010 22:01:38 +0000 (+0200) Subject: USB: kl5usb105: fix memory leak X-Git-Tag: v2.6.34.1~158 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=03cf402d2352f48c82d93a9e174d67645445a815;p=karo-tx-linux.git USB: kl5usb105: fix memory leak commit 313b0d80c1717ffe8f64b455a4d323996748b91a upstream. Private data was not freed on error path in startup. 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;