diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2023-12-14 16:50:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-05 23:12:52 +0300 |
commit | 44f6b75c095eaf8a545ce301339044b5f1dd9be1 (patch) | |
tree | 80316cdbc13533eeec6ec06f029d8c6726935ad5 /block | |
parent | 0edb3ae8bfa31cd544b0c195bdec00e036002b5d (diff) | |
download | linux-44f6b75c095eaf8a545ce301339044b5f1dd9be1.tar.xz |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions