[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1415293651-13917-1-git-send-email-frediano.ziglio@huawei.com>
Date: Thu, 6 Nov 2014 17:07:31 +0000
From: Frediano Ziglio <frediano.ziglio@...wei.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
David Vrabel <david.vrabel@...rix.com>,
<frediano.ziglio@...wei.com>
CC: <xen-devel@...ts.xenproject.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] xen/arm: Return correct code error for xen_swiotlb_map_page
On ARM error code is not 0 so avoid to return it as error.
Signed-off-by: Frediano Ziglio <frediano.ziglio@...wei.com>
---
drivers/xen/swiotlb-xen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c
index ebd8f21..3b8d628 100644
--- a/drivers/xen/swiotlb-xen.c
+++ b/drivers/xen/swiotlb-xen.c
@@ -425,7 +425,7 @@ dma_addr_t xen_swiotlb_map_page(struct device *dev, struct page *page,
*/
if (!dma_capable(dev, dev_addr, size)) {
swiotlb_tbl_unmap_single(dev, map, size, dir);
- dev_addr = 0;
+ dev_addr = DMA_ERROR_CODE;
}
return dev_addr;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists