summaryrefslogtreecommitdiffstats
path: root/drivers/vdpa/vdpa_user/iova_domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vdpa/vdpa_user/iova_domain.c')
-rw-r--r--drivers/vdpa/vdpa_user/iova_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vdpa/vdpa_user/iova_domain.c b/drivers/vdpa/vdpa_user/iova_domain.c
index 2b1143f11d8f..0a4d93edc4c0 100644
--- a/drivers/vdpa/vdpa_user/iova_domain.c
+++ b/drivers/vdpa/vdpa_user/iova_domain.c
@@ -294,7 +294,7 @@ vduse_domain_alloc_iova(struct iova_domain *iovad,
iova_pfn = alloc_iova_fast(iovad, iova_len, limit >> shift, true);
- return iova_pfn << shift;
+ return (dma_addr_t)iova_pfn << shift;
}
static void vduse_domain_free_iova(struct iova_domain *iovad,