Pavel Skripkin
fb9107d4fa
net: ethernet: ezchip: fix error handling
...
[ Upstream commit 0de449d599 ]
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: 0dd0770936 ("NET: Add ezchip ethernet driver")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-07-20 16:15:51 +02:00
..
2021-07-20 16:15:48 +02:00
2021-03-04 09:39:46 +01:00
2020-10-29 09:54:56 +01:00
2021-07-20 16:15:47 +02:00
2021-03-30 14:36:58 +02:00
2021-03-04 09:39:45 +01:00
2021-05-22 10:59:28 +02:00
2020-01-27 14:51:09 +01:00
2021-05-22 10:59:34 +02:00
2021-03-07 12:18:57 +01:00
2021-05-22 10:59:29 +02:00
2021-05-26 11:48:34 +02:00
2021-06-03 08:38:09 +02:00
2021-07-11 12:49:32 +02:00
2021-03-04 09:39:44 +01:00
2019-03-19 13:12:38 +01:00
2021-05-22 10:59:31 +02:00
2020-09-09 19:04:23 +02:00
2021-07-20 16:15:48 +02:00
2019-05-22 07:37:40 +02:00
2020-10-01 13:14:26 +02:00
2021-06-30 08:48:25 -04:00
2020-10-01 13:14:24 +02:00
2021-07-20 16:15:45 +02:00
2021-05-22 10:59:16 +02:00
2021-04-07 12:48:50 +02:00
2021-06-10 13:24:04 +02:00
2020-07-29 10:16:48 +02:00
2020-01-27 14:51:00 +01:00
2020-06-22 09:05:28 +02:00
2021-05-22 10:59:49 +02:00
2021-07-20 16:15:49 +02:00
2021-07-20 16:15:46 +02:00
2021-05-22 10:59:34 +02:00
2021-07-20 16:15:45 +02:00
2021-07-20 16:15:48 +02:00
2021-05-22 10:59:20 +02:00
2021-06-30 08:48:34 -04:00
2021-03-11 14:04:59 +01:00
2019-05-14 19:17:53 +02:00
2021-07-20 16:15:41 +02:00
2021-07-20 16:15:50 +02:00
2021-07-20 16:15:39 +02:00
2021-06-03 08:38:02 +02:00
2020-05-27 17:37:43 +02:00
2021-05-22 10:59:30 +02:00
2021-06-16 11:54:57 +02:00
2021-05-26 11:48:35 +02:00
2021-01-17 14:04:22 +01:00
2020-06-22 09:05:29 +02:00
2020-10-30 10:38:21 +01:00
2021-06-03 08:38:04 +02:00
2021-07-20 16:15:48 +02:00
2021-05-22 10:59:27 +02:00
2021-03-11 14:04:59 +01:00
2020-11-05 11:08:47 +01:00
2021-05-22 10:59:34 +02:00
2021-06-03 08:38:09 +02:00
2021-07-20 16:15:48 +02:00
2021-05-22 10:59:30 +02:00
2021-07-20 16:15:51 +02:00
2021-05-22 10:59:35 +02:00
2020-10-30 10:38:25 +01:00
2021-03-11 14:04:59 +01:00
2021-06-30 08:48:12 -04:00
2020-06-10 21:35:00 +02:00
2021-05-22 10:59:39 +02:00
2020-01-27 14:50:04 +01:00
2020-08-19 08:15:07 +02:00
2019-12-31 16:36:01 +01:00
2021-06-30 08:48:29 -04:00
2021-05-22 10:59:15 +02:00
2021-05-22 10:59:29 +02:00
2021-06-30 08:48:34 -04:00
2021-07-20 16:15:46 +02:00
2021-05-22 10:59:17 +02:00
2020-11-10 21:11:27 +01:00
2019-08-04 09:30:56 +02:00
2020-12-30 11:26:04 +01:00
2021-06-30 08:48:19 -04:00
2021-03-04 09:39:48 +01:00
2021-05-26 11:48:33 +02:00
2019-07-26 09:14:05 +02:00
2021-07-20 16:15:45 +02:00
2021-02-13 13:51:14 +01:00
2020-02-24 08:34:44 +01:00
2021-05-22 10:59:42 +02:00
2021-07-20 16:15:41 +02:00
2021-07-20 16:15:41 +02:00
2021-07-20 16:15:38 +02:00
2020-12-30 11:25:57 +01:00
2021-05-22 10:59:30 +02:00
2021-05-22 10:59:30 +02:00
2021-07-20 16:15:48 +02:00
2021-07-20 16:15:50 +02:00
2021-07-20 16:15:44 +02:00
2021-06-30 08:48:11 -04:00
2021-05-22 10:59:15 +02:00
2021-05-22 10:59:47 +02:00
2021-06-03 08:38:04 +02:00
2021-07-20 16:15:41 +02:00
2020-11-18 19:18:49 +01:00
2021-07-20 16:15:39 +02:00
2021-06-10 13:24:04 +02:00
2021-04-07 12:48:48 +02:00
2021-05-26 11:48:35 +02:00
2020-10-29 09:55:09 +01:00
2020-08-26 10:31:01 +02:00
2020-02-24 08:34:47 +01:00
2020-02-24 08:34:47 +01:00
2020-11-05 11:08:47 +01:00
2021-03-04 09:39:55 +01:00
2021-07-11 12:49:31 +02:00