[PATCH]ark3116 memory leak
Oliver Neukum <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, this driver has a memory leak in an error case. Regards Oliver Signed-off-by: Oliver Neukum <[email protected]> ----- --- a/drivers/usb/serial/ark3116.c 2007-03-22 13:36:53.000000000 +0100 +++ b/drivers/usb/serial/ark3116.c 2007-03-26 17:14:17.000000000 +0200 @@ -341,7 +341,7 @@ result = usb_serial_generic_open(port, filp); if (result) - return result; + goto err_out; /* open */ ARK3116_RCV(serial, 111, 0xFE, 0xC0, 0x0000, 0x0003, 0x02, buf); @@ -372,6 +372,7 @@ if (port->tty) ark3116_set_termios(port, &tmp_termios); +err_out: kfree(buf); return result; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel