diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-12-05 04:32:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-05 04:32:39 -0500 |
commit | 2c3757e54e0d95f47bdc160fdc4f14849f3437cf (patch) | |
tree | 17b08c16f041399adf86048715045758da5d56be /tools/perf/util/session.c | |
parent | 10c6db110d0eb4466b59812c49088ab56218fc2e (diff) | |
parent | 47fbe53bef3b219a365ebf3eca949d6cd4c5291c (diff) |
Merge branch 'perf/urgent' of git://github.com/acmel/linux into perf/urgent
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 85c1e6b76f0a..0f4555ce9063 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1333,6 +1333,10 @@ int perf_session__cpu_bitmap(struct perf_session *session, | |||
1333 | } | 1333 | } |
1334 | 1334 | ||
1335 | map = cpu_map__new(cpu_list); | 1335 | map = cpu_map__new(cpu_list); |
1336 | if (map == NULL) { | ||
1337 | pr_err("Invalid cpu_list\n"); | ||
1338 | return -1; | ||
1339 | } | ||
1336 | 1340 | ||
1337 | for (i = 0; i < map->nr; i++) { | 1341 | for (i = 0; i < map->nr; i++) { |
1338 | int cpu = map->map[i]; | 1342 | int cpu = map->map[i]; |