X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fpci%2Fhotplug%2Fcpci_hotplug_core.c;h=30af105271a2883d559c7ec89a2f5b0efe8f3ed6;hb=e02fd44056dd8077b49b4bd92c5799a75e89cd65;hp=8132d946c384865287a3271358752aaf34a5e987;hpb=d7aaf48128ec7fcefcee92ea22833afc1a80e268;p=linux-2.6-omap-h63xx.git diff --git a/drivers/pci/hotplug/cpci_hotplug_core.c b/drivers/pci/hotplug/cpci_hotplug_core.c index 8132d946c38..30af105271a 100644 --- a/drivers/pci/hotplug/cpci_hotplug_core.c +++ b/drivers/pci/hotplug/cpci_hotplug_core.c @@ -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); }