diff options
Diffstat (limited to 'arch/x86/kernel/traps_64.c')
-rw-r--r-- | arch/x86/kernel/traps_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_64.c b/arch/x86/kernel/traps_64.c index 911ed28afff8..4aa4520f9499 100644 --- a/arch/x86/kernel/traps_64.c +++ b/arch/x86/kernel/traps_64.c | |||
@@ -217,7 +217,7 @@ static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack, | |||
217 | static inline int valid_stack_ptr(struct thread_info *tinfo, | 217 | static inline int valid_stack_ptr(struct thread_info *tinfo, |
218 | void *p, unsigned int size, void *end) | 218 | void *p, unsigned int size, void *end) |
219 | { | 219 | { |
220 | void *t = (void *)tinfo; | 220 | void *t = tinfo; |
221 | if (end) { | 221 | if (end) { |
222 | if (p < end && p >= (end-THREAD_SIZE)) | 222 | if (p < end && p >= (end-THREAD_SIZE)) |
223 | return 1; | 223 | return 1; |