Home Home > GIT Browse > stable
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-05-17 06:38:43 +0200
committerJiri Slaby <jslaby@suse.cz>2019-05-17 06:38:54 +0200
commit607cf77a480cf149213c64e3d3b433f2f94c23ea (patch)
tree308dc216091bf91e698fff0ba620b83c120b88c7
parentd542cde26c654d4cd6b0dbea37dc25a6d90c34ec (diff)
PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(),
-rw-r--r--drivers/pci/controller/pci-hyperv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c
index b489412e3502..82acd6155adf 100644
--- a/drivers/pci/controller/pci-hyperv.c
+++ b/drivers/pci/controller/pci-hyperv.c
@@ -1776,6 +1776,10 @@ static void pci_devices_present_work(struct work_struct *work)
hpdev = list_first_entry(&removed, struct hv_pci_dev,
list_entry);
list_del(&hpdev->list_entry);
+
+ if (hpdev->pci_slot)
+ pci_destroy_slot(hpdev->pci_slot);
+
put_pcichild(hpdev);
}