perf tools: Always bail out when config_attr function fails
authorJiri Olsa <jolsa@kernel.org>
Wed, 22 Apr 2015 19:10:18 +0000 (21:10 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Apr 2015 13:37:59 +0000 (10:37 -0300)
commitc056ba6a174f4d5d79fe27f259fc133041a451da
tree28daffe503887d3a97c65f2fd9b543bf3617ee77
parent6297d42372b6ff02135ce170b0d90ccf0b1531e4
perf tools: Always bail out when config_attr function fails

Not sure why we allowed the fail state, but it's wrong.  Wrong type for
'name' term can cause segfault, and there's probably more fun hidden.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
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/1429729824-13932-4-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c