summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/demangle-ocaml.h
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-04-15 10:34:16 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-04-20 13:40:20 +0200
commit59a1a843b028c88b2ed33a459ff2767c737d8d69 (patch)
treef8ff121ee8db02beb0f4208ac5f63d230992a54f /tools/perf/util/demangle-ocaml.h
parentperf arm64: Fix off-by-one directory paths. (diff)
downloadlinux-59a1a843b028c88b2ed33a459ff2767c737d8d69.tar.xz
linux-59a1a843b028c88b2ed33a459ff2767c737d8d69.zip
perf data: Fix error return code in perf_data__create_dir()
Although 'ret' has been initialized to -1, but it will be reassigned by the "ret = open(...)" statement in the for loop. So that, the value of 'ret' is unknown when asprintf() failed. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210415083417.3740-1-thunder.leizhen@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/demangle-ocaml.h')
0 files changed, 0 insertions, 0 deletions