ChangeSet 1.947.23.14, 2003/02/06 11:23:20+11:00, greg@kroah.com [PATCH] IBM PCI Hotplug: fix memory leak found by checker project. diff -Nru a/drivers/hotplug/ibmphp_pci.c b/drivers/hotplug/ibmphp_pci.c --- a/drivers/hotplug/ibmphp_pci.c Thu Feb 6 14:51:12 2003 +++ b/drivers/hotplug/ibmphp_pci.c Thu Feb 6 14:51:12 2003 @@ -951,6 +951,7 @@ if (rc) { if (rc == -ENOMEM) { ibmphp_remove_bus (bus, func->busno); + kfree (amount_needed); return rc; } retval = rc;