History

virtio: pci: Fix an error handling path in vp_modern_probe()

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().

Christophe JAILLET committed 4 years ago

Commit 7a836a21 parent bda324f1 file · +1 −0Browse files

Unified · Split

drivers/virtio/virtio_pci_modern_dev.c+1−0
@@ -347,6 +347,7 @@ err_map_notify: · 346 unmodified lines
347347 err_map_isr:
348348 pci_iounmap(pci_dev, mdev->common);
349349 err_map_common:
350+ pci_release_selected_regions(pci_dev, mdev->modern_bars);
350351 return err;
351352 }
352353 EXPORT_SYMBOL_GPL(vp_modern_probe);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t