diff options
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 6fb4694d05fa..313dac2d94ce 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1007,7 +1007,7 @@ more: | |||
1007 | if (size == 0) | 1007 | if (size == 0) |
1008 | size = 8; | 1008 | size = 8; |
1009 | 1009 | ||
1010 | if (head + event->header.size >= mmap_size) { | 1010 | if (head + event->header.size > mmap_size) { |
1011 | if (mmaps[map_idx]) { | 1011 | if (mmaps[map_idx]) { |
1012 | munmap(mmaps[map_idx], mmap_size); | 1012 | munmap(mmaps[map_idx], mmap_size); |
1013 | mmaps[map_idx] = NULL; | 1013 | mmaps[map_idx] = NULL; |