diff options
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/swiotlb-xen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 100962dcc7bb..8af68629260b 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c | |||
@@ -548,7 +548,7 @@ xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, | |||
548 | xen_swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir, | 548 | xen_swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir, |
549 | attrs); | 549 | attrs); |
550 | sg_dma_len(sgl) = 0; | 550 | sg_dma_len(sgl) = 0; |
551 | return DMA_ERROR_CODE; | 551 | return 0; |
552 | } | 552 | } |
553 | sg->dma_address = xen_phys_to_bus(map); | 553 | sg->dma_address = xen_phys_to_bus(map); |
554 | } else { | 554 | } else { |