Commit 66f94ab5 authored by 蒋家盛's avatar 蒋家盛 Committed by Zheng Zengkai
Browse files

net: ks8851: Check for error irq

stable inclusion
from stable-v5.10.89
commit 75c962f02a4ff639caaf1e5f075eb93b4e284972
bugzilla: 186140 https://gitee.com/openeuler/kernel/issues/I4S8HA

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



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

[ Upstream commit 99d7fbb5 ]

Because platform_get_irq() could fail and return error irq.
Therefore, it might be better to check it if order to avoid the use of
error irq.

Fixes: 797047f8 ("net: ks8851: Implement Parallel bus operations")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c2284a54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment