diff options
| author | Zhen Lei <[email protected]> | 2021-04-15 09:27:44 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-04-23 19:03:09 +0000 |
| commit | c6f87141254d16e281e4b4431af7316895207b8f (patch) | |
| tree | 97d1fc800d5a8c67f1ead9efbae36804d62629b2 /tools/perf/util/python.c | |
| parent | perf ftrace: Fix access to pid in array when setting a pid filter (diff) | |
| download | kernel-c6f87141254d16e281e4b4431af7316895207b8f.tar.gz kernel-c6f87141254d16e281e4b4431af7316895207b8f.zip | |
perf map: Fix error return code in maps__clone()
Although 'err' has been initialized to -ENOMEM, but it will be reassigned
by the "err = unwind__prepare_access(...)" statement in the for loop. So
that, the value of 'err' is unknown when map__clone() failed.
Fixes: 6c502584438bda63 ("perf unwind: Call unwind__prepare_access for forked thread")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhen Lei <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: zhen lei <[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
