Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb7c61e authored by Miles Chen's avatar Miles Chen Committed by Will Deacon
Browse files

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: default avatarMiles Chen <miles.chen@mediatek.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent ffe3d1e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ void __iounmap(volatile void __iomem *io_addr)
	 * We could get an address outside vmalloc range in case
	 * of ioremap_cache() reusing a RAM mapping.
	 */
	if (VMALLOC_START <= addr && addr < VMALLOC_END)
	if (is_vmalloc_addr((void *)addr))
		vunmap((void *)addr);
}
EXPORT_SYMBOL(__iounmap);