Jakub Kicinski
063d945795
eth: tg3: silence the GCC 12 array-bounds warning
...
[ Upstream commit 9dec850fd7c210a04b4707df8e6c95bfafdd6a4b ]
GCC 12 currently generates a rather inconsistent warning:
drivers/net/ethernet/broadcom/tg3.c:17795:51: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds]
17795 | struct tg3_napi *tnapi = &tp->napi[i];
| ~~~~~~~~^~~
i is guaranteed < tp->irq_max which in turn is either 1 or 5.
There are more loops like this one in the driver, but strangely
GCC 12 dislikes only this single one.
Silence this silliness for now.
Signed-off-by: Jakub Kicinski <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2022-06-14 18:11:29 +02:00
..
appletalk
arcnet
net: arcnet: com20020: Fix null-ptr-deref in com20020pci_probe()
2022-03-08 19:07:48 +01:00
bonding
bonding: fix data-races around agg_select_timer
2022-02-23 11:59:58 +01:00
caif
can
can: grcan: only use the NAPI poll budget for RX
2022-05-15 19:54:46 +02:00
dsa
net: dsa: lantiq_gswip: Don't set GSWIP_MII_CFG_RMII_CLK
2022-05-09 09:03:26 +02:00
ethernet
eth: tg3: silence the GCC 12 array-bounds warning
2022-06-14 18:11:29 +02:00
fddi
fjes
fjes: Check for error irq
2021-12-29 12:23:35 +01:00
hamradio
hamradio: remove needs_free_netdev to avoid UAF
2022-05-09 09:03:20 +02:00
hippi
drivers: net: hippi: Fix deadlock in rr_close()
2022-05-09 09:03:27 +02:00
hyperv
hv_netvsc: Add check for kvmalloc_array
2022-03-23 09:12:07 +01:00
ieee802154
net: ieee802154: ca8210: Fix lifs/sifs periods
2022-02-23 11:59:58 +01:00
ipvlan
netdevsim
netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc
2021-12-22 09:29:38 +01:00
phy
net: phy: micrel: Allow probing without .driver_data
2022-06-14 18:11:29 +02:00
plip
ppp
ppp: ensure minimum packet size in ppp_write()
2022-01-27 09:19:35 +01:00
slip
drivers: net: slip: fix NPD bug in sl_tx_timeout()
2022-04-20 09:19:37 +02:00
team
usb
net: usb: aqc111: Fix out-of-bounds accesses in RX fixup
2022-04-20 09:19:37 +02:00
vmxnet3
net: vmxnet3: fix possible NULL pointer dereference in vmxnet3_rq_cleanup()
2022-05-25 09:14:35 +02:00
wan
wimax
wireless
rtlwifi: Use pr_warn instead of WARN_ONCE
2022-06-14 18:11:28 +02:00
xen-netback
Revert "xen-netback: Check for hotplug-status existence before watching"
2022-03-16 13:21:47 +01:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
net: macsec: Verify that send_sci is on when setting Tx sci explicitly
2022-02-08 18:24:31 +01:00
macvlan.c
macvtap.c
macvtap: advertise link netns via netlink
2022-04-15 14:18:34 +02:00
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tuntap: add sanity checks about msg_controllen in sendmsg
2022-04-15 14:18:34 +02:00
thunderbolt.c
tun.c
tuntap: add sanity checks about msg_controllen in sendmsg
2022-04-15 14:18:34 +02:00
veth.c
veth: Ensure eth header is in skb's linear part
2022-04-20 09:19:34 +02:00
virtio_net.c
vrf.c
vrf: don't run conntrack on vrf with !dflt qdisc
2021-12-14 14:48:59 +01:00
vsockmon.c
vxlan.c
vxlan: fix error return code in vxlan_fdb_append
2022-04-27 13:50:47 +02:00
xen-netfront.c
xen/netfront: react properly to failing gnttab_end_foreign_access_ref()
2022-03-11 11:22:39 +01:00