diff options
author | Sahara <keun-o.park@darkmatter.ae> | 2017-02-16 13:29:15 -0500 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-04-04 17:30:29 -0400 |
commit | 96dc4f9fb64690fc34410415fd1fc609cf803f61 (patch) | |
tree | 31971ed38668c7492910a70da3b6e1faf5f0509f /mm/usercopy.c | |
parent | 4495c08e84729385774601b5146d51d9e5849f81 (diff) |
usercopy: Move enum for arch_within_stack_frames()
This patch moves the arch_within_stack_frames() return value enum up in
the header files so that per-architecture implementations can reuse the
same return values.
Signed-off-by: Sahara <keun-o.park@darkmatter.ae>
Signed-off-by: James Morse <james.morse@arm.com>
[kees: adjusted naming and commit log]
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'mm/usercopy.c')
-rw-r--r-- | mm/usercopy.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mm/usercopy.c b/mm/usercopy.c index d155e12563b1..1eba99baf1cf 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c | |||
@@ -19,15 +19,9 @@ | |||
19 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
20 | #include <linux/sched/task.h> | 20 | #include <linux/sched/task.h> |
21 | #include <linux/sched/task_stack.h> | 21 | #include <linux/sched/task_stack.h> |
22 | #include <linux/thread_info.h> | ||
22 | #include <asm/sections.h> | 23 | #include <asm/sections.h> |
23 | 24 | ||
24 | enum { | ||
25 | BAD_STACK = -1, | ||
26 | NOT_STACK = 0, | ||
27 | GOOD_FRAME, | ||
28 | GOOD_STACK, | ||
29 | }; | ||
30 | |||
31 | /* | 25 | /* |
32 | * Checks if a given pointer and length is contained by the current | 26 | * Checks if a given pointer and length is contained by the current |
33 | * stack frame (if possible). | 27 | * stack frame (if possible). |