]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix fill_callchain return value
authorNikita Shubin <n.shubin@yadro.com>
Fri, 11 Mar 2022 06:58:15 +0000 (09:58 +0300)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 31 Mar 2022 06:01:42 +0000 (23:01 -0700)
commit3371f205670f10c03ba07f9d91dc2ceb73a6e0a0
tree4fcc1ba8c6d25ce846f2e0c344cb74b357874b88
parent848279c889e04af724735c6c15618a5ecc82c9ba
riscv: Fix fill_callchain return value

perf_callchain_store return 0 on success, -1 otherwise,
fix fill_callchain to return correct bool value.

Fixes: 0c7fd3fa7a88 ("riscv: Add perf callchain support")
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/perf_callchain.c