[S390] cio: allow offline processing for disconnected devices
[pandora-kernel.git] / drivers / pci / search.c
index 217814f..3b3b5f1 100644 (file)
@@ -280,6 +280,8 @@ static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id,
                              match_pci_dev_by_id);
        if (dev)
                pdev = to_pci_dev(dev);
+       if (from)
+               pci_dev_put(from);
        return pdev;
 }