aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Chen <miles.chen@mediatek.com>2017-02-09 06:45:34 -0500
committerWill Deacon <will.deacon@arm.com>2017-02-09 08:47:56 -0500
commitabb7c61e03bcc241c4adcd634a839734d7c187df (patch)
tree85a699158dc6d208c551ec286277314105a25293
parentffe3d1e43cc01457d513bf6e13605ebe8ae0fd9a (diff)
arm64: use is_vmalloc_addr
To is_vmalloc_addr() to check if an address is a vmalloc address instead of checking VMALLOC_START and VMALLOC_END manually. Signed-off-by: Miles Chen <miles.chen@mediatek.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arch/arm64/mm/ioremap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
index 01e88c8bcab0..c4c8cd4c31d4 100644
--- a/arch/arm64/mm/ioremap.c
+++ b/arch/arm64/mm/ioremap.c
@@ -88,7 +88,7 @@ void __iounmap(volatile void __iomem *io_addr)
88 * We could get an address outside vmalloc range in case 88 * We could get an address outside vmalloc range in case
89 * of ioremap_cache() reusing a RAM mapping. 89 * of ioremap_cache() reusing a RAM mapping.
90 */ 90 */
91 if (VMALLOC_START <= addr && addr < VMALLOC_END) 91 if (is_vmalloc_addr((void *)addr))
92 vunmap((void *)addr); 92 vunmap((void *)addr);
93} 93}
94EXPORT_SYMBOL(__iounmap); 94EXPORT_SYMBOL(__iounmap);