diff options
author | Ingo Molnar <mingo@kernel.org> | 2020-01-10 18:53:14 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-10 18:53:14 +0100 |
commit | 57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e (patch) | |
tree | eaa43171e82737e8b33239e2e9bc3b4de67b7ddd /mm/vmalloc.c | |
parent | Merge branch 'linus' into efi/core, to pick up fixes (diff) | |
parent | mm, x86/mm: Untangle address space layout definitions from basic pgtable type... (diff) | |
download | linux-57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e.tar.xz linux-57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e.zip |
Merge branch 'x86/mm' into efi/core, to pick up dependencies
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e9681dc4aa75..8e8302568699 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -41,6 +41,14 @@ #include "internal.h" +bool is_vmalloc_addr(const void *x) +{ + unsigned long addr = (unsigned long)x; + + return addr >= VMALLOC_START && addr < VMALLOC_END; +} +EXPORT_SYMBOL(is_vmalloc_addr); + struct vfree_deferred { struct llist_head list; struct work_struct wq; |