Revert "FROMLIST: virtio_ring: Fix querying of maximum DMA mapping size for virtio device"

This reverts commit 25b14230af.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I8bb15175f5e1befe690c6aa3a7f7b6d86faca7da
This commit is contained in:
Will Deacon
2022-07-07 15:52:09 +01:00
parent dc9a1fcadb
commit 21c4038d1c

View File

@@ -268,7 +268,7 @@ size_t virtio_max_dma_size(struct virtio_device *vdev)
size_t max_segment_size = SIZE_MAX;
if (vring_use_dma_api(vdev))
max_segment_size = dma_max_mapping_size(vdev->dev.parent);
max_segment_size = dma_max_mapping_size(&vdev->dev);
return max_segment_size;
}