projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] shpchp: fix improper reference to Slot Avail Regsister
[powerpc.git]
/
drivers
/
pci
/
hotplug
/
cpci_hotplug_core.c
diff --git
a/drivers/pci/hotplug/cpci_hotplug_core.c
b/drivers/pci/hotplug/cpci_hotplug_core.c
index
8132d94
..
30af105
100644
(file)
--- 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);
}