summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2020-01-10 18:53:14 +0100
committerIngo Molnar <mingo@kernel.org>2020-01-10 18:53:14 +0100
commit57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e (patch)
treeeaa43171e82737e8b33239e2e9bc3b4de67b7ddd /mm/vmalloc.c
parent02df083201272c0c2e061b18d9c20635974abf6d (diff)
parent186525bd6b83efc592672e2d6185e4d7c810d2b4 (diff)
downloadlinux-57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e.tar.gz
linux-57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e.tar.bz2
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.c8
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;