Re: [PATCH] PCI Hotplug changes for 2.5.59

From: Greg KH (greg@kroah.com)
Date: Wed Feb 05 2003 - 23:08:05 EST


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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:19 EST