Pavel Skripkin 0de449d599 net: ethernet: ezchip: fix error handling
As documented at drivers/base/platform.c for platform_get_irq:

 * Gets an IRQ for a platform device and prints an error message if finding the
 * IRQ fails. Device drivers should check the return value for errors so as to
 * not pass a negative integer value to the request_irq() APIs.

So, the driver should check that platform_get_irq() return value
is _negative_, not that it's equal to zero, because -ENXIO (return
value from request_irq() if irq was not found) will
pass this check and it leads to passing negative irq to request_irq()

Fixes: 0dd077093636 ("NET: Add ezchip ethernet driver")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-19 11:46:00 -07:00
..
2021-04-27 14:07:27 -07:00
2021-04-29 11:57:23 -07:00
2021-06-17 11:30:25 -07:00
2021-06-09 14:46:21 -07:00
2021-04-16 15:31:02 -07:00
2021-04-16 15:31:02 -07:00
2021-04-13 15:13:13 -07:00
2021-06-08 11:46:23 -07:00