On 2026-10-15T11:13:15, Bin Meng <[email protected]> wrote:
> virtio: pci: Fix modern private data lookup when deleting queues
>
> The virtqueue's vdev points to the functional device, while the PCI I/O
> register mapping belongs to its parent transport. The current lookup
> therefore treats the functional driver's private data as transport data
> and uses a queue pointer as the register base.
>
> Queue deletion can overwrite the queue's list links and crash when
> unlinking it. Fetch the parent transport's private data instead.
>
> Fixes: 550435edf810 ("virtio: pci: Support non-legacy PCI transport device")
> Signed-off-by: Bin Meng <[email protected]>
>
> drivers/virtio/virtio_pci_modern.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to