aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/grant-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/grant-table.c')
-rw-r--r--drivers/xen/grant-table.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c
index 39aefa890110..b91f14e83164 100644
--- a/drivers/xen/grant-table.c
+++ b/drivers/xen/grant-table.c
@@ -923,7 +923,8 @@ int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
923EXPORT_SYMBOL_GPL(gnttab_map_refs); 923EXPORT_SYMBOL_GPL(gnttab_map_refs);
924 924
925int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, 925int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops,
926 struct page **pages, unsigned int count, bool clear_pte) 926 struct gnttab_map_grant_ref *kmap_ops,
927 struct page **pages, unsigned int count)
927{ 928{
928 int i, ret; 929 int i, ret;
929 bool lazy = false; 930 bool lazy = false;
@@ -941,7 +942,8 @@ int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops,
941 } 942 }
942 943
943 for (i = 0; i < count; i++) { 944 for (i = 0; i < count; i++) {
944 ret = m2p_remove_override(pages[i], clear_pte); 945 ret = m2p_remove_override(pages[i], kmap_ops ?
946 &kmap_ops[i] : NULL);
945 if (ret) 947 if (ret)
946 return ret; 948 return ret;
947 } 949 }