diff options
-rw-r--r-- | Documentation/perf_counter/util/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/perf_counter/util/symbol.c b/Documentation/perf_counter/util/symbol.c index d52a1ae5342a..35ee6de1e513 100644 --- a/Documentation/perf_counter/util/symbol.c +++ b/Documentation/perf_counter/util/symbol.c | |||
@@ -19,7 +19,7 @@ static struct symbol *symbol__new(uint64_t start, uint64_t len, | |||
19 | self = ((void *)self) + priv_size; | 19 | self = ((void *)self) + priv_size; |
20 | } | 20 | } |
21 | self->start = start; | 21 | self->start = start; |
22 | self->end = start + len; | 22 | self->end = start + len - 1; |
23 | memcpy(self->name, name, namelen); | 23 | memcpy(self->name, name, namelen); |
24 | } | 24 | } |
25 | 25 | ||