aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/evlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 4d0945c96ab2..98ec96b3a744 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -754,7 +754,7 @@ int perf_evlist__parse_mmap_pages(const struct option *opt, const char *str,
754 unsigned long max = UINT_MAX; 754 unsigned long max = UINT_MAX;
755 long pages; 755 long pages;
756 756
757 if (max < SIZE_MAX / page_size) 757 if (max > SIZE_MAX / page_size)
758 max = SIZE_MAX / page_size; 758 max = SIZE_MAX / page_size;
759 759
760 pages = parse_pages_arg(str, 1, max); 760 pages = parse_pages_arg(str, 1, max);