perf bench: Fix segfault at the end of an 'all' execution
authorRamkumar Ramachandra <artagnon@gmail.com>
Thu, 27 Mar 2014 23:50:19 +0000 (19:50 -0400)
committerJiri Olsa <jolsa@redhat.com>
Mon, 14 Apr 2014 10:55:53 +0000 (12:55 +0200)
commit5673872d4afd2584e075cf2b1adb2cccec46a0f3
treefe0e946ecbcc3747e75413b22a1e24687c9d4bbc
parent95a2b3c0a9e2a8038edbf3f9776d5a3d76146459
perf bench: Fix segfault at the end of an 'all' execution

At the end of

  $ perf bench all

the program segfaults because it attempts to dereference a NULL
pointer. Fix this fault.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1395964219-22173-4-git-send-email-artagnon@gmail.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/builtin-bench.c