summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-02-28 22:28:44 +0100
committerRichard Braun <rbraun@sceen.net>2013-02-28 22:28:44 +0100
commitf18a2028bce9b5b3ea5cdeecc23b2974ccbadcb6 (patch)
tree4c25d14429529bf34ed807b6a855d74cd6fd9f52
parentc2a196656539e0ccf41e06c87348124f62e66eb7 (diff)
x86/strace: fix address lookup
-rw-r--r--arch/x86/machine/strace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/machine/strace.c b/arch/x86/machine/strace.c
index 7a12704e..0295e2ff 100644
--- a/arch/x86/machine/strace.c
+++ b/arch/x86/machine/strace.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012 Richard Braun.
+ * Copyright (c) 2012, 2013 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ strace_lookup(unsigned long addr, unsigned long *offset, unsigned long *size)
for (sym = strace_symtab; sym < strace_symtab_end; sym++) {
if ((sym->size != 0)
&& (addr >= sym->value)
- && (addr < (sym->value + sym->size)))
+ && (addr <= (sym->value + sym->size)))
break;
}