[PATCH] s390: show_task oops fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Heiko Carstens <[email protected]>

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

Signed-off-by: Heiko Carstens <[email protected]>
---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux