Hi, in an error case memory already allocated must be freed again.
Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> Regards Oliver ---- --- linux-2.6.24/drivers/usb/serial/ark3116.c 2008-01-18 21:57:01.000000000 +0100 +++ linux-2.6.24-serial_intfdata/drivers/usb/serial/ark3116.c 2008-01-22 14:06:15.000000000 +0100 @@ -151,8 +151,10 @@ static int ark3116_attach(struct usb_ser return 0; cleanup: - for (--i; i >= 0; --i) + for (--i; i >= 0; --i) { + kfree(usb_get_serial_port_data(serial->port[i])); usb_set_serial_port_data(serial->port[i], NULL); + } return -ENOMEM; } - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html