aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/oprofile/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/oprofile/common.c')
-rw-r--r--arch/arm/oprofile/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c
index 8aa974491dfc..6adda2b5fa31 100644
--- a/arch/arm/oprofile/common.c
+++ b/arch/arm/oprofile/common.c
@@ -85,7 +85,7 @@ static struct frame_tail* user_backtrace(struct frame_tail *tail)
85 85
86 /* frame pointers should strictly progress back up the stack 86 /* frame pointers should strictly progress back up the stack
87 * (towards higher addresses) */ 87 * (towards higher addresses) */
88 if (tail >= buftail[0].fp) 88 if (tail + 1 >= buftail[0].fp)
89 return NULL; 89 return NULL;
90 90
91 return buftail[0].fp-1; 91 return buftail[0].fp-1;