X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fswiotlb.c;h=d6d57fb475e3cc7d399e9fb9357b0012c2ade082;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=10625785eefd90d412668fce760190b122569bb9;hpb=16cf0ec7408f389279d413869e94c1a351392f97;p=linux-2.6.git diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 10625785e..d6d57fb47 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -750,7 +750,7 @@ swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sg, for (i = 0; i < nelems; i++, sg++) if (sg->dma_address != SG_ENT_PHYS_ADDRESS(sg)) - sync_single(hwdev, (void *) sg->dma_address, + sync_single(hwdev, phys_to_virt(sg->dma_address), sg->dma_length, dir, target); }