diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-03-05 19:32:43 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-05 19:32:43 (GMT) |
commit | e678fefa07f63c8f757d61b621fd1e5569cd63be (patch) | |
tree | 012340994ed8d7311ca59e4c18f75b25835152ba | |
parent | 6587457b4b3d663b237a0f95ddf6e67d1828c8ea (diff) | |
parent | 3995614d9b0320e10ce202836c8477e1bcf1a2d4 (diff) | |
download | linux-e678fefa07f63c8f757d61b621fd1e5569cd63be.tar.xz |
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fix from Arnaldo Carvalho de Melo:
" - Fix SEGFAULT when freeing unparsed lock prefixed instructions in 'perf
annotate' (Arnaldo Carvalho de Melo)"
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | tools/perf/util/annotate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 61bf912..9d9db3b 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -30,6 +30,8 @@ static int disasm_line__parse(char *line, char **namep, char **rawp); static void ins__delete(struct ins_operands *ops) { + if (ops == NULL) + return; zfree(&ops->source.raw); zfree(&ops->source.name); zfree(&ops->target.raw); |