linux-stable/drivers/net
Tom Rix b5ce9e60c7 net: dsa: b53: check for timeout
[ Upstream commit 774d977abf ]

clang static analysis reports this problem

b53_common.c:1583:13: warning: The left expression of the compound
  assignment is an uninitialized value. The computed value will
  also be garbage
        ent.port &= ~BIT(port);
        ~~~~~~~~ ^

ent is set by a successful call to b53_arl_read().  Unsuccessful
calls are caught by an switch statement handling specific returns.
b32_arl_read() calls b53_arl_op_wait() which fails with the
unhandled -ETIMEDOUT.

So add -ETIMEDOUT to the switch statement.  Because
b53_arl_op_wait() already prints out a message, do not add another
one.

Fixes: 1da6df85c6 ("net: dsa: b53: Implement ARL add/del/dump operations")
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-26 10:29:59 +02:00
..
appletalk
arcnet
bonding bonding: fix active-backup failover for current ARP slave 2020-08-26 10:29:59 +02:00
caif
can can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices 2020-06-20 10:25:06 +02:00
cris
dsa net: dsa: b53: check for timeout 2020-08-26 10:29:59 +02:00
ethernet net: fec: correct the error path for regulator disable in probe 2020-08-26 10:29:58 +02:00
fddi
fjes fjes: fix missed check in fjes_acpi_add 2019-12-31 12:36:39 +01:00
hamradio yam: fix possible memory leak in yam_init_driver 2020-06-25 15:41:50 +02:00
hippi hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path 2020-07-29 07:42:53 +02:00
hyperv hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit() 2020-08-26 10:29:59 +02:00
ieee802154
ipvlan ipvlan: don't deref eth hdr before checking it's set 2020-03-20 10:54:14 +01:00
phy net: phy: mdio-bcm-unimac: fix potential NULL dereference in unimac_mdio_probe() 2020-08-05 10:06:47 +02:00
plip
ppp pppoe: only process PADT targeted at local interfaces 2020-06-11 09:22:56 +02:00
slip slip: not call free_netdev before rtnl_unlock in slip_open 2020-03-20 10:54:25 +01:00
team team: fix hang in team_mode_get() 2020-05-02 17:24:17 +02:00
usb usb: hso: check for return value in hso_serial_common_create() 2020-08-21 09:48:01 +02:00
vmxnet3 net: vmxnet3: fix possible buffer overflow caused by bad DMA value in vmxnet3_get_rss() 2020-06-20 10:25:09 +02:00
wan drivers/net/wan/lapbether: Added needed_headroom and a skb->len check 2020-08-21 09:48:13 +02:00
wimax wimax/i2400m: Fix potential urb refcnt leak 2020-05-10 10:28:59 +02:00
wireless wl1251: fix always return 0 error 2020-08-21 09:48:11 +02:00
xen-netback
dummy.c
eql.c
geneve.c geneve: change from tx_error to tx_dropped on missing metadata 2020-06-25 15:41:56 +02:00
gtp.c gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp() 2020-05-27 16:43:00 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: macsec: preserve ingress frame ordering 2020-05-20 08:16:53 +02:00
macvlan.c macvlan: Skip loopback packets in RX handler 2020-06-20 10:25:13 +02:00
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: fix sleep time mismatch 2019-12-01 09:13:59 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c tuntap: correctly set SOCKWQ_ASYNC_NOSPACE 2020-03-11 18:02:54 +01:00
veth.c
virtio_net.c
vrf.c vrf: Check skb for XFRM_TRANSFORMED flag 2020-05-02 17:24:18 +02:00
vsockmon.c
vxlan.c Revert "vxlan: fix tos value before xmit" 2020-08-21 09:48:01 +02:00
xen-netfront.c xen-netfront: fix potential deadlock in xennet_remove() 2020-08-05 10:06:53 +02:00