You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -88,7 +88,7 @@ void __iounmap(volatile void __iomem *io_addr)
|
|||||||
* We could get an address outside vmalloc range in case
|
* We could get an address outside vmalloc range in case
|
||||||
* of ioremap_cache() reusing a RAM mapping.
|
* of ioremap_cache() reusing a RAM mapping.
|
||||||
*/
|
*/
|
||||||
if (VMALLOC_START <= addr && addr < VMALLOC_END)
|
if (is_vmalloc_addr((void *)addr))
|
||||||
vunmap((void *)addr);
|
vunmap((void *)addr);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__iounmap);
|
EXPORT_SYMBOL(__iounmap);
|
||||||
|
|||||||
Reference in New Issue
Block a user