From ae3fa030113431f2d52b2f08a0f0df969ce76a71 Mon Sep 17 00:00:00 2001 From: Han Pingtian Date: Sat, 15 Jan 2011 07:00:50 +0800 Subject: [PATCH] --- yaml --- r: 234349 b: refs/heads/master c: 98d77b78504a423fca911a26a17bee00ef2fdda2 h: refs/heads/master i: 234347: a863c12ad7d54700539661eb7213550ef08ec0bd v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-test.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index a3f8777536df..1669d48ad2c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d2af9687c96f3864178de1860e6d83873aeef224 +refs/heads/master: 98d77b78504a423fca911a26a17bee00ef2fdda2 diff --git a/trunk/tools/perf/builtin-test.c b/trunk/tools/perf/builtin-test.c index 7cc6b2086947..5a50e4755e6c 100644 --- a/trunk/tools/perf/builtin-test.c +++ b/trunk/tools/perf/builtin-test.c @@ -347,9 +347,9 @@ static int test__open_syscall_event_on_all_cpus(void) } cpus = cpu_map__new(NULL); - if (threads == NULL) { - pr_debug("thread_map__new\n"); - return -1; + if (cpus == NULL) { + pr_debug("cpu_map__new\n"); + goto out_thread_map_delete; }