2003-03-25 02:47:17

by Miles Bader

[permalink] [raw]
Subject: [PATCH][v850] Correct argument to thread_saved_pc on v850

diff -ruN -X../cludes linux-2.5.66-moo.orig/arch/v850/kernel/process.c linux-2.5.66-moo/arch/v850/kernel/process.c
--- linux-2.5.66-moo.orig/arch/v850/kernel/process.c 2003-02-25 10:44:59.000000000 +0900
+++ linux-2.5.66-moo/arch/v850/kernel/process.c 2003-03-25 10:37:52.000000000 +0900
@@ -226,7 +226,7 @@
if (!p || p == current || p->state == TASK_RUNNING)
return 0;

- pc = thread_saved_pc (&p->thread);
+ pc = thread_saved_pc (p);

/* This quite disgusting function walks up the stack, following
saved return address, until it something that's out of bounds