summaryrefslogtreecommitdiff
path: root/tools/cgroup/Makefile
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-04-15 16:34:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-07 10:51:37 +0200
commitad4659935e11de4b9e3502edaa9237baa44b12f0 (patch)
treeccfe5b4c5e84fd37c1c2f12b82cab25119d3186c /tools/cgroup/Makefile
parentcbc6b467610c9de141848cf1d4a92042a5b5e6fb (diff)
perf data: Fix error return code in perf_data__create_dir()
[ Upstream commit f2211881e737cade55e0ee07cf6a26d91a35a6fe ] 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> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/cgroup/Makefile')
0 files changed, 0 insertions, 0 deletions