]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pci/slot.c
PCI: stop leaking 'slot_name' in pci_create_slot
[linux-2.6-omap-h63xx.git] / drivers / pci / slot.c
index 4dd1c3e157aec6d6c136c02255faed19d46c3dc1..5a8ccb4f604deed50495b61ced5ba403e59e9484 100644 (file)
@@ -253,6 +253,7 @@ placeholder:
                 __func__, pci_domain_nr(parent), parent->number, slot_nr);
 
 out:
+       kfree(slot_name);
        up_write(&pci_bus_sem);
        return slot;
 err: