Commit c630a201 authored by Yu Zhe's avatar Yu Zhe Committed by Jialin Zhang
Browse files

perf/arm_pmu_platform: fix tests for platform_get_irq() failure

stable inclusion
from stable-v5.10.144
commit fc2c14c2cde931d2fb8fc24a2c5dc3c22504eb19
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0V7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fc2c14c2cde931d2fb8fc24a2c5dc3c22504eb19



--------------------------------

[ Upstream commit 6bb0d64c ]

The platform_get_irq() returns negative error codes.  It can't actually
return zero.

Signed-off-by: default avatarYu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20220825011844.8536-1-yuzhe@nfschina.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent b02372e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment