linux-stable/drivers/virtio
Christophe JAILLET 6efb5526a5 virtio: pci: Fix an error handling path in vp_modern_probe()
[ Upstream commit 7a836a2aba ]

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

Fixes: fd502729fb ("virtio-pci: introduce modern device module")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Message-Id: <237109725aad2c3c03d14549f777b1927c84b045.1648977064.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:41:23 +02:00
..
Kconfig virtio: drop default for virtio-mem 2022-03-06 06:06:50 -05:00
Makefile virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio.c virtio: use virtio_device_ready() in virtio_device_restore() 2022-04-08 13:58:57 +02:00
virtio_balloon.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_dma_buf.c dma-buf: move dma-buf symbols into the DMA_BUF module namespace 2021-10-25 14:53:08 +02:00
virtio_input.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_mem.c virtio/virtio_mem: handle a possible NULL as a memcpy parameter 2022-01-14 18:50:53 -05:00
virtio_mmio.c virtio-mmio: Use to_virtio_mmio_device() to simply code 2021-03-14 04:37:35 -04:00
virtio_pci_common.c Revert "virtio_pci: harden MSI-X interrupts" 2022-04-08 13:58:57 +02:00
virtio_pci_common.h Revert "virtio_pci: harden MSI-X interrupts" 2022-04-08 13:58:57 +02:00
virtio_pci_legacy.c Revert "virtio_pci: harden MSI-X interrupts" 2022-04-08 13:58:57 +02:00
virtio_pci_legacy_dev.c virtio/virtio_pci_legacy_dev: ensure the correct return value 2022-01-14 18:50:53 -05:00
virtio_pci_modern.c Revert "virtio_pci: harden MSI-X interrupts" 2022-04-08 13:58:57 +02:00
virtio_pci_modern_dev.c virtio: pci: Fix an error handling path in vp_modern_probe() 2022-06-14 18:41:23 +02:00
virtio_ring.c virtio_ring: mark ring unused on error 2022-01-14 18:50:53 -05:00
virtio_vdpa.c vdpa: factor out vdpa_set_features_unlocked for vdpa internal use 2022-03-04 11:56:33 -05:00