Commit 98d77b78 authored by Han Pingtian's avatar Han Pingtian Committed by Arnaldo Carvalho de Melo
Browse files

perf test: check if cpu_map__new() return NULL



It looks like we should check if cpus is NULL after

	cpus = cpu_map__new(NULL);

in test__open_syscall_event_on_all_cpus().

LKML-Reference: <20110114230050.GA7011@localhost>
Signed-off-by: default avatarHan Pingtian <phan@redhat.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent d2af9687
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -347,9 +347,9 @@ static int test__open_syscall_event_on_all_cpus(void)
	}
	}


	cpus = cpu_map__new(NULL);
	cpus = cpu_map__new(NULL);
	if (threads == NULL) {
	if (cpus == NULL) {
		pr_debug("thread_map__new\n");
		pr_debug("cpu_map__new\n");
		return -1;
		goto out_thread_map_delete;
	}
	}