diff options
| author | Zhen Lei <[email protected]> | 2021-04-15 08:34:16 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-04-20 11:40:20 +0000 |
| commit | 59a1a843b028c88b2ed33a459ff2767c737d8d69 (patch) | |
| tree | f8ff121ee8db02beb0f4208ac5f63d230992a54f /tools/perf/util/python.c | |
| parent | perf arm64: Fix off-by-one directory paths. (diff) | |
| download | kernel-59a1a843b028c88b2ed33a459ff2767c737d8d69.tar.gz kernel-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 <[email protected]>
Signed-off-by: Zhen Lei <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
