summaryrefslogtreecommitdiff
path: root/kernel/iomem.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/iomem.c')
-rw-r--r--kernel/iomem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/iomem.c b/kernel/iomem.c
index 93c264444510..62c92e43aa0d 100644
--- a/kernel/iomem.c
+++ b/kernel/iomem.c
@@ -121,7 +121,7 @@ EXPORT_SYMBOL(memremap);
void memunmap(void *addr)
{
- if (is_vmalloc_addr(addr))
+ if (is_ioremap_addr(addr))
iounmap((void __iomem *) addr);
}
EXPORT_SYMBOL(memunmap);