diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-25 10:29:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-25 18:36:58 +0200 |
commit | b8a0055050b6294826171641b182c09f78f4cc63 (patch) | |
tree | 7e8295c13575775422fa60a47d8406159d40537c /drivers/usb/serial | |
parent | USB: omninet: fix port-data memory leak (diff) | |
download | linux-b8a0055050b6294826171641b182c09f78f4cc63.tar.xz linux-b8a0055050b6294826171641b182c09f78f4cc63.zip |
USB: quatech2: fix memory leak in error path
Fix memory leak in attach error path where the read urb was never freed.
Cc: Bill Pemberton <wfp5p@virginia.edu>
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/serial')
-rw-r--r-- | drivers/usb/serial/quatech2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 2cdfdcc90b37..5adb7428fbb1 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c @@ -823,6 +823,7 @@ static int qt2_setup_urbs(struct usb_serial *serial) if (status != 0) { dev_err(&serial->dev->dev, "%s - submit read urb failed %i\n", __func__, status); + usb_free_urb(serial_priv->read_urb); return status; } |