]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf annotate: Return appropriate error code for allocation failures
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2019 18:53:33 +0000 (15:53 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2019 20:30:04 +0000 (17:30 -0300)
commit16ed3c1e91159e28b02f11f71ff4ce4cbc6f99e4
tree98d9af57d47b7d833bddbb4e91ceb632c02a67a5
parent42d7a9107d83223a5fcecc6732d626a6c074cbc2
perf annotate: Return appropriate error code for allocation failures

We should return errno or the annotation extra range understood by
symbol__strerror_disassemble() instead of -1, fix it, returning ENOMEM
instead.

Reported-by: Russell King - ARM Linux admin <linux@armlinux.org.uk>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Cc: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/n/tip-8of1cmj3rz0mppfcshc9bbqq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c