aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 231e3e21810c..738830d298e8 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -495,8 +495,8 @@ static int test__basic_mmap(void)
495 } 495 }
496 496
497 cpus = cpu_map__new(NULL); 497 cpus = cpu_map__new(NULL);
498 if (threads == NULL) { 498 if (cpus == NULL) {
499 pr_debug("thread_map__new\n"); 499 pr_debug("cpu_map__new\n");
500 goto out_free_threads; 500 goto out_free_threads;
501 } 501 }
502 502
@@ -510,7 +510,7 @@ static int test__basic_mmap(void)
510 } 510 }
511 511
512 evlist = perf_evlist__new(); 512 evlist = perf_evlist__new();
513 if (threads == NULL) { 513 if (evlist == NULL) {
514 pr_debug("perf_evlist__new\n"); 514 pr_debug("perf_evlist__new\n");
515 goto out_free_cpus; 515 goto out_free_cpus;
516 } 516 }