WSL2-Linux-Kernel/drivers/net/ethernet/xscale
Lv Ruyi 0377e8f544 ixp4xx_eth: fix error check return value of platform_get_irq()
[ Upstream commit f45ba67eb7 ]

platform_get_irq() return negative value on failure, so null check of
return value is incorrect. Fix it by comparing whether it is less than
zero.

Fixes: 9055a2f591 ("ixp4xx_eth: make ptp support a platform driver")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220412085126.2532924-1-lv.ruyi@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:22:46 +02:00
..
Kconfig ixp4xx_eth: make ptp support a platform driver 2021-08-30 09:59:11 +01:00
Makefile ixp4xx_eth: make ptp support a platform driver 2021-08-30 09:59:11 +01:00
ixp4xx_eth.c ixp4xx_eth: fix compile-testing 2021-08-30 09:59:11 +01:00
ixp46x_ts.h ixp4xx_eth: make ptp support a platform driver 2021-08-30 09:59:11 +01:00
ptp_ixp46x.c ixp4xx_eth: fix error check return value of platform_get_irq() 2022-06-09 10:22:46 +02:00