]> git.baikalelectronics.ru Git - kernel.git/commit
perf help: Fix bug when there's no perf-* command around
authorIngo Molnar <mingo@elte.hu>
Wed, 3 Jun 2009 18:09:11 +0000 (20:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 3 Jun 2009 18:09:11 +0000 (20:09 +0200)
commit1346f9f0d03f5808a9282f33c6d46693660c25b8
tree4a1db532835c656a0cb6c8e2bfdb3fddd734fb1d
parent15ec433dcb28e830b88efeddb11f90b22221b37f
perf help: Fix bug when there's no perf-* command around

main_cmds can be empty - fix util/help.c to handle this case
without segfaulting.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/util/help.c