OpenCloudOS-Kernel/drivers/net/ethernet/broadcom/genet
Sergey Shtylyov 9deb48b53e bcmgenet: add WOL IRQ check
The driver neglects to check the result of platform_get_irq_optional()'s
call and blithely passes the negative error codes to devm_request_irq()
(which takes *unsigned* IRQ #), causing it to fail with -EINVAL.
Stop calling devm_request_irq() with the invalid IRQ #s.

Fixes: 8562056f26 ("net: bcmgenet: request Wake-on-LAN interrupt")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-14 11:20:06 +00:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bcmgenet.c bcmgenet: add WOL IRQ check 2022-01-14 11:20:06 +00:00
bcmgenet.h net: bcmgenet: Add support for 7712 16nm internal EPHY 2021-10-24 13:42:28 +01:00
bcmgenet_wol.c net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear 2021-07-01 11:45:46 -07:00
bcmmii.c net: bcmgenet: Fix NULL vs IS_ERR() checking 2021-12-13 14:32:08 +00:00