projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feffa7c
)
USB: quatech2: fix memory leak in error path
author
Johan Hovold
<jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:07 +0000
(10:29 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 16:36:58 +0000
(09:36 -0700)
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>
drivers/usb/serial/quatech2.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/quatech2.c
b/drivers/usb/serial/quatech2.c
index
2cdfdcc
..
5adb742
100644
(file)
--- 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;
}