Pārlūkot izejas kodu

Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6:
  PCI Hotplug: Fix small mem leak in IBM Hot Plug Controller Driver
  PCI: rename DECLARE_PCI_DEVICE_TABLE to DEFINE_PCI_DEVICE_TABLE
Linus Torvalds 17 gadi atpakaļ
vecāks
revīzija
effe008d27
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      drivers/pci/hotplug/ibmphp_ebda.c

+ 1 - 0
drivers/pci/hotplug/ibmphp_ebda.c

@@ -963,6 +963,7 @@ static int __init ebda_rsrc_controller (void)
 
 			bus_info_ptr1 = ibmphp_find_same_bus_num (hpc_ptr->slots[index].slot_bus_num);
 			if (!bus_info_ptr1) {
+				kfree(tmp_slot);
 				rc = -ENODEV;
 				goto error;
 			}