linux/drivers/net/ethernet
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: 0dd0770936 ("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
..
3com
8390
actions
adaptec treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
aeroflex net: ethernet: aeroflex: fix UAF in greth_of_remove 2021-06-19 11:45:10 -07:00
agere
alacritech
allwinner
alteon
altera
amazon net: ena: fix DMA mapping function issues in XDP 2021-06-08 16:41:02 -07:00
amd treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
apm
apple
aquantia
arc
atheros alx: Fix an error handling path in 'alx_probe()' 2021-06-11 11:12:54 -07:00
broadcom bnxt_en: Call bnxt_ethtool_free() in bnxt_init_one() error path 2021-06-18 12:00:27 -07:00
brocade Fix spelling error from "eleminate" to "eliminate" 2021-05-05 12:43:42 -07:00
cadence net: macb: ensure the device is available before accessing GEMGXL control registers 2021-05-23 16:15:11 -07:00
calxeda
cavium net: liquidio: Add missing null pointer checks 2021-05-13 18:58:36 +02:00
chelsio cxgb4: fix wrong shift. 2021-06-18 11:56:33 -07:00
cirrus
cisco ethernet:enic: Fix a use after free bug in enic_hard_start_xmit 2021-05-03 13:23:00 -07:00
cortina
davicom net: davicom: Remove redundant assignment to ret 2021-04-26 12:48:30 -07:00
dec
dlink Networking changes for 5.13. 2021-04-29 11:57:23 -07:00
emulex be2net: Fix an error handling path in 'be_probe()' 2021-06-17 11:24:06 -07:00
ezchip net: ethernet: ezchip: fix error handling 2021-06-19 11:46:00 -07:00
faraday
freescale net: fec_ptp: fix issue caused by refactor the fec_devtype 2021-06-16 12:39:03 -07:00
fujitsu net: fujitsu: fix potential null-ptr-deref 2021-05-13 17:30:31 +02:00
google gve: Correct SKB queue index validation. 2021-05-17 15:38:40 -07:00
hisilicon net: hns: Fix kernel-doc 2021-05-25 15:26:47 -07:00
huawei
i825xx
ibm
intel ice: parameterize functions responsible for Tx ring management 2021-06-09 13:15:10 -07:00
marvell net: mvpp2: add buffer header handling in RX 2021-05-25 15:49:04 -07:00
mediatek net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88 2021-05-23 16:13:11 -07:00
mellanox Networking fixes for 5.13-rc7, including fixes from wireless, bpf, 2021-06-18 18:55:29 -07:00
micrel
microchip net: encx24j600: fix kernel-doc syntax in file headers 2021-05-20 15:25:38 -07:00
microsoft
moxa
mscc net: dsa: felix: re-enable TX flow control in ocelot_port_flush() 2021-06-08 16:34:23 -07:00
myricom ethernet: myri10ge: Fix missing error code in myri10ge_probe() 2021-06-01 15:54:38 -07:00
natsemi
neterion
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-26 12:00:00 -07:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: fix ptp support config breakage 2021-05-11 16:20:27 -07:00
qlogic net: qed: Fix memcpy() overflow of qed_dcbx_params() 2021-06-17 12:14:51 -07:00
qualcomm net: qualcomm: rmnet: don't over-count statistics 2021-06-14 12:13:38 -07:00
rdc
realtek r8169: Avoid memcpy() over-reading of ETH_SS_STATS 2021-06-16 13:02:07 -07:00
renesas sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS 2021-06-16 13:02:07 -07:00
rocker
samsung
seeq
sfc net:sfc: fix non-freed irq in legacy irq mode 2021-05-21 14:51:10 -07:00
sgi
silan
sis
smsc
socionext
stmicro net: stmmac: disable clocks in stmmac_remove_config_dt() 2021-06-16 12:20:58 -07:00
sun ethernet: sun: niu: fix missing checks of niu_pci_eeprom_read() 2021-05-13 17:33:24 +02:00
synopsys
tehuti
ti net: netcp: Fix an error message 2021-05-10 14:22:08 -07:00
toshiba
tundra
via
wiznet
xilinx net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY 2021-06-18 12:11:51 -07:00
xircom
xscale Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-26 12:00:00 -07:00
dnet.c
dnet.h
ec_bhf.c net: ethernet: fix potential use-after-free in ec_bhf_remove 2021-06-18 13:01:17 -07:00
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c net: korina: Fix return value check in korina_probe() 2021-05-13 15:54:08 -07:00
lantiq_etop.c
lantiq_xrx200.c lantiq: net: fix duplicated skb in rx descriptor ring 2021-06-15 14:17:19 -07:00
Makefile