]> git.baikalelectronics.ru Git - kernel.git/commit
perf diff: Fix error return value in __cmd_diff()
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 24 Nov 2020 10:36:52 +0000 (18:36 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Nov 2020 17:21:23 +0000 (14:21 -0300)
commitd40b98e193ae97918ea986d77bb204c63cc4dd4c
tree1ac88c70344c5c86b648563da991b649479e6893
parentbaa9f755e8505b064ba9493acf2c41c35b1c3d06
perf diff: Fix error return value in __cmd_diff()

An appropriate return value should be set on the failed path.

Fixes: 906baddec1314899 ("perf diff: Support hot streams comparison")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20201124103652.438-1-thunder.leizhen@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-diff.c