[PATCH] shpchp: fix improper reference to Slot Avail Regsister
[powerpc.git] / drivers / pci / hotplug / cpci_hotplug_core.c
index 8132d94..30af105 100644 (file)
@@ -217,6 +217,8 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
        kfree(slot->hotplug_slot->info);
        kfree(slot->hotplug_slot->name);
        kfree(slot->hotplug_slot);
+       if (slot->dev)
+               pci_dev_put(slot->dev);
        kfree(slot);
 }