aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/process_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index 2a8ccb9238b4..b6b508ea7110 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -754,12 +754,12 @@ unsigned long get_wchan(struct task_struct *p)
754 if (!p || p == current || p->state == TASK_RUNNING) 754 if (!p || p == current || p->state == TASK_RUNNING)
755 return 0; 755 return 0;
756 stack = (unsigned long)task_stack_page(p); 756 stack = (unsigned long)task_stack_page(p);
757 if (p->thread.sp < stack || p->thread.sp > stack+THREAD_SIZE) 757 if (p->thread.sp < stack || p->thread.sp >= stack+THREAD_SIZE)
758 return 0; 758 return 0;
759 fp = *(u64 *)(p->thread.sp); 759 fp = *(u64 *)(p->thread.sp);
760 do { 760 do {
761 if (fp < (unsigned long)stack || 761 if (fp < (unsigned long)stack ||
762 fp > (unsigned long)stack+THREAD_SIZE) 762 fp >= (unsigned long)stack+THREAD_SIZE)
763 return 0; 763 return 0;
764 ip = *(u64 *)(fp+8); 764 ip = *(u64 *)(fp+8);
765 if (!in_sched_functions(ip)) 765 if (!in_sched_functions(ip))