Skip to content

Commit

Permalink
swiotlb-xen: pass dev_addr to swiotlb_tbl_unmap_single
Browse files Browse the repository at this point in the history
Need to pass the pointer within the swiotlb internal buffer to the
swiotlb library, that in the case of xen_unmap_single is dev_addr, not
paddr.

Signed-off-by: Stefano Stabellini <[email protected]>
Acked-by: Konrad Rzeszutek Wilk <[email protected]>
CC: [email protected]
  • Loading branch information
Stefano Stabellini authored and David Vrabel committed Dec 4, 2014
1 parent 9490c6c commit 2c3fc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/swiotlb-xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ static void xen_unmap_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_unmap_single(hwdev, paddr, size, dir);
swiotlb_tbl_unmap_single(hwdev, dev_addr, size, dir);
return;
}

Expand Down

0 comments on commit 2c3fc8d

Please sign in to comment.