aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/perf_counter/builtin-report.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index 7973092094e1..20a4e519dfd1 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -653,8 +653,10 @@ static int __cmd_report(void)
653 return EXIT_FAILURE; 653 return EXIT_FAILURE;
654 } 654 }
655 cwdlen = strlen(cwd); 655 cwdlen = strlen(cwd);
656 } else 656 } else {
657 cwdp = NULL; 657 cwdp = NULL;
658 cwdlen = 0;
659 }
658remap: 660remap:
659 buf = (char *)mmap(NULL, page_size * mmap_window, PROT_READ, 661 buf = (char *)mmap(NULL, page_size * mmap_window, PROT_READ,
660 MAP_SHARED, input, offset); 662 MAP_SHARED, input, offset);