summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/base/dma-mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/base/dma-mapping.c')
-rw-r--r--kernel/drivers/base/dma-mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/base/dma-mapping.c b/kernel/drivers/base/dma-mapping.c
index d95c5971c..a00f7b792 100644
--- a/kernel/drivers/base/dma-mapping.c
+++ b/kernel/drivers/base/dma-mapping.c
@@ -335,7 +335,7 @@ void dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags)
return;
}
- unmap_kernel_range((unsigned long)cpu_addr, size);
+ unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size));
vunmap(cpu_addr);
}
#endif