perf symbols: Fix crash in elf_section_by_name
authorJiri Olsa <jolsa@redhat.com>
Sun, 2 Mar 2014 13:32:07 +0000 (14:32 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Mar 2014 14:17:14 +0000 (11:17 -0300)
commit155b3a13a65d4217316dbe094843f2a7df0711fa
tree50220eab009a1088fcc8b9de51dfb69e9845c536
parent02c5bb4a352a4cca56e9b5d3a2a57d61062eb2e1
perf symbols: Fix crash in elf_section_by_name

Fixing crash in elf_section_by_name function caused by missing section
name in elf binary.

Reported-by: Albert Strasheim <albert@cloudflare.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Albert Strasheim <albert@cloudflare.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1393767127-599-1-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c