Remove wrong division by sizeof(long). Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx> diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 8709a46..9f367a0 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -472,7 +472,7 @@ unsigned long unwind_stack(struct task_s return 0; } if ((unsigned long)*sp < stack_page || - (unsigned long)*sp + info.frame_size / sizeof(long) > + (unsigned long)*sp + info.frame_size > stack_page + THREAD_SIZE - 32) return 0;