diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-05-19 00:01:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 22:21:50 +0200 |
commit | 313b0d80c1717ffe8f64b455a4d323996748b91a (patch) | |
tree | 152cc0d987d1fc517a4f8932962f3b6b5efc228f /drivers/usb/serial/kl5kusb105.c | |
parent | USB: io_ti: use kfifo to implement write buffering (diff) | |
download | linux-313b0d80c1717ffe8f64b455a4d323996748b91a.tar.xz linux-313b0d80c1717ffe8f64b455a4d323996748b91a.zip |
USB: kl5usb105: fix memory leak
Private data was not freed on error path in startup.
Cc: stable <stable@kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.c')
-rw-r--r-- | drivers/usb/serial/kl5kusb105.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |