projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868e440
)
USB: fix ark3116 memory leak
author
Oliver Neukum
<oliver@neukum.org>
Mon, 26 Mar 2007 16:12:44 +0000
(18:12 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 27 Apr 2007 20:28:38 +0000
(13:28 -0700)
this driver has a memory leak in an error case.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ark3116.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/ark3116.c
b/drivers/usb/serial/ark3116.c
index
edd6857
..
ea2175b
100644
(file)
--- a/
drivers/usb/serial/ark3116.c
+++ b/
drivers/usb/serial/ark3116.c
@@
-341,7
+341,7
@@
static int ark3116_open(struct usb_serial_port *port, struct file *filp)
result = usb_serial_generic_open(port, filp);
if (result)
-
return resul
t;
+
goto err_ou
t;
/* open */
ARK3116_RCV(serial, 111, 0xFE, 0xC0, 0x0000, 0x0003, 0x02, buf);
@@
-372,6
+372,7
@@
static int ark3116_open(struct usb_serial_port *port, struct file *filp)
if (port->tty)
ark3116_set_termios(port, &tmp_termios);
+err_out:
kfree(buf);
return result;