diff options
Diffstat (limited to 'arch/arm/oprofile')
-rw-r--r-- | arch/arm/oprofile/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c index 2b663918c464..c074e66ad224 100644 --- a/arch/arm/oprofile/common.c +++ b/arch/arm/oprofile/common.c | |||
@@ -84,7 +84,7 @@ static struct frame_tail* user_backtrace(struct frame_tail *tail) | |||
84 | 84 | ||
85 | /* frame pointers should strictly progress back up the stack | 85 | /* frame pointers should strictly progress back up the stack |
86 | * (towards higher addresses) */ | 86 | * (towards higher addresses) */ |
87 | if (tail >= buftail[0].fp) | 87 | if (tail + 1 >= buftail[0].fp) |
88 | return NULL; | 88 | return NULL; |
89 | 89 | ||
90 | return buftail[0].fp-1; | 90 | return buftail[0].fp-1; |