[PATCH] fix stack range checking in unwind_stack()

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

 



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;
 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux