diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/parse-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 518a33affe1a..d18c98edd00d 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -436,7 +436,7 @@ void print_events(void) | |||
436 | 436 | ||
437 | for (i = 0; i < ARRAY_SIZE(event_symbols); i++, syms++) { | 437 | for (i = 0; i < ARRAY_SIZE(event_symbols); i++, syms++) { |
438 | type = syms->type + 1; | 438 | type = syms->type + 1; |
439 | if (type > ARRAY_SIZE(event_type_descriptors)) | 439 | if (type >= ARRAY_SIZE(event_type_descriptors)) |
440 | type = 0; | 440 | type = 0; |
441 | 441 | ||
442 | if (type != prev_type) | 442 | if (type != prev_type) |