kernel_samsung_a53x/drivers/net/dsa/mv88e6xxx
Tobias Waldekranz 85f9a7ffdc net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
[ Upstream commit fc82a08ae795ee6b73fb6b50785f7be248bec7b5 ]

mv88e6xxx_get_stats, which collects stats from various sources,
expects all callees to return the number of stats read. If an error
occurs, 0 should be returned.

Prevent future mishaps of this kind by updating the return type to
reflect this contract.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:14 +01:00
..
chip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chip.h net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1_atu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global1_vtu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2_avb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global2_scratch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtstamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtstamp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port_hidden.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serdes.c net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
serdes.h net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path 2024-11-18 12:13:14 +01:00
smi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00