diff options
-rw-r--r-- | drivers/xen/xen-pciback/pci_stub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c index 3cc3fbe5bf8d..8f06e1ed028c 100644 --- a/drivers/xen/xen-pciback/pci_stub.c +++ b/drivers/xen/xen-pciback/pci_stub.c | |||
@@ -220,6 +220,8 @@ void pcistub_put_pci_dev(struct pci_dev *dev) | |||
220 | } | 220 | } |
221 | 221 | ||
222 | spin_unlock_irqrestore(&pcistub_devices_lock, flags); | 222 | spin_unlock_irqrestore(&pcistub_devices_lock, flags); |
223 | if (WARN_ON(!found_psdev)) | ||
224 | return; | ||
223 | 225 | ||
224 | /*hold this lock for avoiding breaking link between | 226 | /*hold this lock for avoiding breaking link between |
225 | * pcistub and xen_pcibk when AER is in processing | 227 | * pcistub and xen_pcibk when AER is in processing |