If an error occurs after a successful pci_request_selected_regions() call, it should be undone by a corresponding pci_release_selected_regions() call, as already done in vp_modern_remove().
Unified · Split
| @@ -347,6 +347,7 @@ err_map_notify: · 346 unmodified lines | ||
| 347 | 347 | err_map_isr: |
| 348 | 348 | pci_iounmap(pci_dev, mdev->common); |
| 349 | 349 | err_map_common: |
| 350 | + pci_release_selected_regions(pci_dev, mdev->modern_bars); | |
| 350 | 351 | return err; |
| 351 | 352 | } |
| 352 | 353 | EXPORT_SYMBOL_GPL(vp_modern_probe); |