perf bench: Fix segfault at the end of an 'all' execution
authorRamkumar Ramachandra <[email protected]>
Thu, 27 Mar 2014 23:50:19 +0000 (19:50 -0400)
committerJiri Olsa <[email protected]>
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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
tools/perf/builtin-bench.c