[PATCH] i386: task_stack_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -771,7 +771,7 @@ unsigned long get_wchan(struct task_struct *p)
|
||||
int count = 0;
|
||||
if (!p || p == current || p->state == TASK_RUNNING)
|
||||
return 0;
|
||||
stack_page = (unsigned long)p->thread_info;
|
||||
stack_page = (unsigned long)task_stack_page(p);
|
||||
esp = p->thread.esp;
|
||||
if (!stack_page || esp < stack_page || esp > top_esp+stack_page)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user