Hi, Here's a patch that fixes the use-after-free bug that Seth Hallem found in the Belkin usb-serial driver. It is against 2.4.3-pre4. thanks, greg k-h -- greg@(kroah|wirex).com
diff -Naur -X dontdiff linux-2.4.3-pre4/drivers/usb/serial/belkin_sa.c linux-2.4.3-pre4-greg/drivers/usb/serial/belkin_sa.c --- linux-2.4.3-pre4/drivers/usb/serial/belkin_sa.c Thu Feb 22 23:43:26 2001 +++ linux-2.4.3-pre4-greg/drivers/usb/serial/belkin_sa.c Mon Mar 19 14:25:06 +2001 @@ -233,8 +233,8 @@ belkin_sa_close (&serial->port[i], NULL); } /* My special items, the standard routines free my urbs */ - if (serial->port->private) - kfree(serial->port->private); + if (serial->port[i].private) + kfree(serial->port[i].private); } }