]> git.baikalelectronics.ru Git - kernel.git/commit
perf probe: Handle strdup() failure
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Feb 2015 14:47:18 +0000 (11:47 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Feb 2015 13:08:29 +0000 (10:08 -0300)
commit41469cfcf565c540291c1984774b9df551fb243c
tree0e2bccc1b23206d234055a9662cd3edfdc33c6ea
parentf6e67cb379c8705b9212bc220c1288290609d229
perf probe: Handle strdup() failure

We could end up returning 0 (Ok) with a NULL raw_path. Fix it.

Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Naohiro Aota <naota@elisp.net>
Link: http://lkml.kernel.org/n/tip-l0kcbcg5f4nnzqt01cv42vec@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c