commit | 9db0f8d395fd3af0952a6e4d66fbd11a83e34e8a | [log] [tgz] |
---|---|---|
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | Wed Dec 22 15:41:12 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 29 12:25:57 2021 +0100 |
tree | ee7a2d50c0311649fd5c21c0a06bdc641863ad81 | |
parent | ca2a15053b07a34cbb4736f81a9ed2289a463bd5 [diff] |
drivers: net: smc911x: Check for error irq [ Upstream commit cb93b3e11d405f20a405a07482d01147ef4934a3 ] 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: ae150435b59e ("smsc: Move the SMC (SMSC) drivers") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>