linux/drivers/net/ethernet
Li Qiong 0d462a681d net: lan966x: fix checking for return value of platform_get_irq_byname()
[ Upstream commit 40b4ac880e ]

The platform_get_irq_byname() returns non-zero IRQ number
or negative error number. "if (irq)" always true, chang it
to "if (irq > 0)"

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2022-09-05 10:31:32 +02:00
..
3com eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
8390 ethernet: 8390: Remove unnecessary print function dev_err() 2022-03-11 22:59:03 -08:00
actions ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
adaptec eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
aeroflex ethernet: aeroflex: use eth_hw_addr_set() 2021-10-16 08:53:45 +01:00
agere et131x: support arbitrary MAX_SKB_FRAGS 2022-02-08 16:51:23 -08:00
alacritech slic: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
allwinner net: ethernet: sun4i-emac: Fix an error handling path in emac_probe() 2022-01-15 22:34:52 +00:00
alteon net: alteon: Simplify DMA setting 2022-01-09 16:52:18 -08:00
altera net: altera: Fix refcount leak in altera_tse_mdio_create 2022-06-08 20:52:41 -07:00
amazon eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
amd amd-xgbe: Use platform_irq_count() 2022-06-13 23:12:39 -07:00
apm drivers: net: xgene: Fix regression in CRC stripping 2022-03-23 10:30:05 -07:00
apple net: ethernet: Prepare cleanup of powerpc's asm/prom.h 2022-05-05 15:53:02 -07:00
aquantia net: atlantic: fix aq_vec index out of range error 2022-08-25 11:45:14 +02:00
arc eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
asix net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
atheros net: ag71xx: fix discards 'const' qualifier warning 2022-08-17 15:14:30 +02:00
broadcom bnxt_en: fix LRO/GRO_HW features in ndo_fix_features callback 2022-08-31 17:18:06 +02:00
brocade eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-23 21:19:17 -07:00
calxeda net: calxedaxgmac: Fix typo (doubled "the") 2022-04-11 20:49:21 -07:00
cavium net: thunderx: remove null check after call container_of() 2022-05-17 17:39:49 -07:00
chelsio RDMA/cxgb4: fix accept failure due to increased cpl_t5_pass_accept_rpl size 2022-08-25 11:45:30 +02:00
cirrus cirrus: cs89x0: fix typo in comment 2022-05-22 20:44:29 +01:00
cisco Updates for the interrupt subsystem: 2022-01-13 08:53:45 -08:00
cortina eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
davicom net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
dec eth: de4x5: remove support for Generic DECchip & DIGITAL EtherWORKS PCI/EISA 2022-05-23 11:43:51 +01:00
dlink net: sundance: Replace one-element array with non-array object 2022-02-05 15:30:32 +00:00
emulex be2net: Fix buffer overflow in be_get_module_eeprom 2022-07-19 11:51:16 +02:00
engleder tsnep: Fix tsnep_tx_unmap() error path usage 2022-08-25 11:45:25 +02:00
ezchip eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
faraday net: ftgmac100: Hold reference returned by of_get_child_by_name() 2022-07-13 13:29:07 +01:00
freescale fec: Fix timer capture timing in fec_ptp_enable_pps() 2022-08-25 11:45:36 +02:00
fujitsu ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
fungible net/funeth: Fix fun_xdp_tx() and XDP packet reclaim 2022-07-28 12:54:10 +02:00
google gve: Fix spelling mistake "droping" -> "dropping" 2022-03-16 19:29:00 -07:00
hisilicon net: hns3: fix tm port shapping of fibre port is incorrect after driver initialization 2022-06-13 11:56:01 +01:00
huawei net: hinic: avoid kernel hung in hinic_get_stats64() 2022-08-17 15:14:41 +02:00
i825xx Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
ibm ibmvnic: Properly dispose of all skbs during a failover. 2022-07-04 11:09:57 +01:00
intel i40e: Fix incorrect address type for IPv6 flow rules 2022-08-31 17:18:10 +02:00
litex net: ethernet: litex: Add the dependency on HAS_IOMEM 2022-02-08 20:43:40 -08:00
marvell octeontx2-af: Fix key checking for source mac 2022-08-25 11:45:21 +02:00
mediatek net: ethernet: mtk_eth_soc: fix hw hash reporting for MTK_NETSYS_V2 2022-08-31 17:18:10 +02:00
mellanox net/mlx5e: Fix wrong tc flag used when set hw-tc-offload off 2022-08-31 17:18:04 +02:00
micrel net: micrel: Fix KS8851 Kconfig 2022-04-05 17:32:05 -07:00
microchip net: lan966x: fix checking for return value of platform_get_irq_byname() 2022-09-05 10:31:32 +02:00
microsoft eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
moxa net: moxa: get rid of asymmetry in DMA mapping/unmapping 2022-08-31 17:18:05 +02:00
mscc net: mscc: ocelot: report ndo_get_stats64 from the wraparound-resistant ocelot->stats 2022-08-25 11:45:39 +02:00
myricom eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
natsemi net: remove comments that mention obsolete __SLOW_DOWN_IO 2022-04-26 17:09:24 -07:00
neterion Revert "drivers/net/ethernet/neterion/vxge: Fix a use-after-free bug in vxge-main.c" 2022-06-22 13:15:49 +01:00
netronome nfp: ethtool: fix the display error of ethtool -m DEVNAME 2022-08-25 11:45:24 +02:00
ni net: nixge: Use GFP_KERNEL instead of GFP_ATOMIC when possible 2022-02-17 20:03:39 -08:00
nvidia eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
nxp eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
oki-semi eth: pch_gbe: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
packetengines drivers: net: packetengines: fix typos in comments 2022-03-14 10:04:28 -07:00
pasemi ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
pensando ionic: VF initial random MAC address if no assigned mac 2022-08-31 17:18:11 +02:00
qlogic Bitmap patches for 5.19-rc1 2022-06-04 14:04:27 -07:00
qualcomm net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
rdc ethernet: replace netdev->dev_addr 16bit writes 2021-10-14 09:22:27 -07:00
realtek r8169: fix accessing unset transport header 2022-07-06 19:53:21 -07:00
renesas ravb: Add support for RZ/V2M 2022-05-16 10:14:27 +01:00
rocker net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
samsung Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-03 11:55:12 -08:00
seeq ethernet: seeq/ether3: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
sfc sfc: disable softirqs for ptp TX 2022-07-27 18:20:43 -07:00
sgi ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
silan ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
sis ethernet: sis900: fix indentation 2021-11-12 20:13:28 -08:00
smsc epic100: fix use after free on rmmod 2022-06-27 21:48:51 -07:00
socionext net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
stmicro net: stmmac: work around sporadic tx issue on link-up 2022-08-31 17:18:11 +02:00
sun net: sunhme: output link status with a single print. 2022-07-13 14:53:48 +01:00
sunplus net: ethernet: SP7021: fix a use after free of skb->len 2022-05-19 17:46:56 -07:00
synopsys net: allow gso_max_size to exceed 65536 2022-05-16 10:18:55 +01:00
tehuti tehuti: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 12:21:16 +00:00
ti net: ethernet: ti: am65-cpsw: Fix devlink port register sequence 2022-07-07 17:21:44 -07:00
toshiba eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
tundra ethernet: tundra: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
vertexcom net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
via eth: velocity: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
wiznet eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
xilinx net: axienet: add missing error return code in axienet_probe() 2022-06-16 11:08:38 -07:00
xircom ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
xscale eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
dnet.c ethernet: manually convert memcpy(dev_addr,..., sizeof(addr)) 2021-10-14 09:22:19 -07:00
dnet.h net/dnet: Delete static version from the driver 2020-03-03 17:54:55 -08:00
ec_bhf.c ethernet: ec_bhf: use eth_hw_addr_set() 2021-10-16 08:53:46 +01:00
ethoc.c net: ethoc: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
fealnx.c ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
jme.c jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
jme.h jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
Kconfig net: ethernet: Add driver for Sunplus SP7021 2022-05-10 11:31:32 +02:00
korina.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
lantiq_etop.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
lantiq_xrx200.c net: lantiq_xrx200: restore buffer if memory allocation failed 2022-08-31 17:18:12 +02:00
Makefile net: ethernet: Add driver for Sunplus SP7021 2022-05-10 11:31:32 +02:00