[PATCH] s390: show_task oops fix

From: Heiko Carstens
Date: Fri Jan 13 2006 - 07:23:50 EST


From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

Use new stack page accessors as pointed out by Andrew Morton.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
---

arch/s390/kernel/process.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff -urN a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
--- a/arch/s390/kernel/process.c 2006-01-13 12:15:44.000000000 +0100
+++ b/arch/s390/kernel/process.c 2006-01-13 12:43:32.000000000 +0100
@@ -60,11 +60,10 @@
{
struct stack_frame *sf, *low, *high;

- if (!tsk || !tsk->thread_info)
+ if (!tsk || !task_stack_page(tsk))
return 0;
- low = (struct stack_frame *) tsk->thread_info;
- high = (struct stack_frame *)
- ((unsigned long) tsk->thread_info + THREAD_SIZE) - 1;
+ low = task_stack_page(tsk);
+ high = (struct stack_frame *) task_pt_regs(tsk);
sf = (struct stack_frame *) (tsk->thread.ksp & PSW_ADDR_INSN);
if (sf <= low || sf > high)
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/