swiotlb: Use physical addresses instead of virtual in swiotlb_tbl_sync_single
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / drivers / xen / swiotlb-xen.c
index 4cedc284b5df660c3680361b41e63a32fe263797..af47e7594460a98afad10a5bb89e376fff509e7f 100644 (file)
@@ -433,8 +433,7 @@ xen_swiotlb_sync_single(struct device *hwdev, dma_addr_t dev_addr,
 
        /* NOTE: We use dev_addr here, not paddr! */
        if (is_xen_swiotlb_buffer(dev_addr)) {
-               swiotlb_tbl_sync_single(hwdev, phys_to_virt(paddr), size, dir,
-                                      target);
+               swiotlb_tbl_sync_single(hwdev, paddr, size, dir, target);
                return;
        }