summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-04-15 17:27:44 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-04-23 16:03:09 -0300
commitc6f87141254d16e281e4b4431af7316895207b8f (patch)
tree97d1fc800d5a8c67f1ead9efbae36804d62629b2 /init
parent671b60cb6a897a5b3832fe57657152f2c3995e25 (diff)
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 <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> Cc: zhen lei <thunder.leizhen@huawei.com> Link: http://lore.kernel.org/lkml/20210415092744.3793-1-thunder.leizhen@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions