arm: end_of_stack()
Subsystems (2)
PATCH 33/50 arm: end_of_stack()
References: <[email protected]>
In-Reply-To: <[email protected]>
Signed-off-by Al Viro <[email protected]>
---
arch/arm/kernel/process.c | 2 +- arch/arm/kernel/traps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
886253feedc3c113e137755e8d9c9052eaea6376
arch/arm/kernel/process.c +1 -1
@@ -460,7 +460,7 @@ unsigned long get_wchan(struct task_struif (!p || p == current || p->state ==TASK_RUNNING )return 0 ; - stack_start = (unsigned long )(p->thread_info +1 ); + stack_start = (unsigned long )end_of_stack (p); stack_end = ((unsigned long )p->thread_info) +THREAD_SIZE ; fp =thread_saved_fp (p);
arch/arm/kernel/traps.c +1 -1
@@ -165,7 +165,7 @@ static void dump_backtrace(struct pt_reg }else if (verify_stack (fp)) {printk ("invalid frame pointer 0x%08x" , fp); ok =0 ; - }else if (fp < (unsigned long )(tsk->thread_info +1 )) + }else if (fp < (unsigned long )end_of_stack (tsk))printk ("frame pointer underflow" );printk ("\n" );
Signature · 1 line
0.99.9.GIT