diff -Nurp --exclude-from=/home/mcd/.dontdiff linux-2.6.2-rc3/drivers/pci/remove.c linux-2.6.2-rc3+pcibus_memleak-fix/drivers/pci/remove.c --- linux-2.6.2-rc3/drivers/pci/remove.c Thu Jan 8 22:59:10 2004 +++ linux-2.6.2-rc3+pcibus_memleak-fix/drivers/pci/remove.c Tue Feb 3 17:17:30 2004 @@ -83,7 +83,7 @@ void pci_remove_bus_device(struct pci_de list_del(&b->node); spin_unlock(&pci_bus_lock); - kfree(b); + class_device_unregister(&b->class_dev); dev->subordinate = NULL; }