lkml.org 
[lkml]   [2006]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] s390: show_task oops fix
From: Heiko Carstens <heiko.carstens@de.ibm.com>

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

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-01-13 13:27    [W:0.030 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site