ChangeSet 1.1094.6.10, 2003/03/14 11:10:11-08:00, green@linuxhacker.ru

[PATCH] USB: more Edgeport USB Serial Converter driver stuff


 drivers/usb/serial/io_ti.c |    4 ++++
 1 files changed, 4 insertions(+)


diff -Nru a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
--- a/drivers/usb/serial/io_ti.c	Mon Mar 17 11:46:26 2003
+++ b/drivers/usb/serial/io_ti.c	Mon Mar 17 11:46:26 2003
@@ -1151,8 +1151,12 @@
 				dbg ( "%s - HARDWARE RESET return %d", __FUNCTION__, status);
 
 				/* return an error on purpose. */
+				kfree (firmware_version);
+				kfree (rom_desc);
+				kfree (ti_manuf_desc);
 				return -ENODEV;
 			}
+			kfree (firmware_version);
 		}
 		// Search for type 0xF2 record (firmware blank record)
 		else if ((start_address = TIGetDescriptorAddress (serial, I2C_DESC_TYPE_FIRMWARE_BLANK, rom_desc)) != 0) {