diff options
| author | MD Danish Anwar <danishanwar@ti.com> | 2025-03-14 15:57:21 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-28 22:03:28 +0100 |
| commit | 1344df9a981c2f35b4dad5797b45bceaec486892 (patch) | |
| tree | 647605391afb236cb9ea7ad5ea9bd93b3fb7eabf /net | |
| parent | 326223182e4703cde99fdbd36d07d0b3de9980fb (diff) | |
| download | linux-1344df9a981c2f35b4dad5797b45bceaec486892.tar.gz linux-1344df9a981c2f35b4dad5797b45bceaec486892.tar.bz2 linux-1344df9a981c2f35b4dad5797b45bceaec486892.zip | |
net: ti: icssg-prueth: Add lock to stats
[ Upstream commit 47a9b5e52abd2b717dfc8b9460589f89936d93cf ]
Currently the API emac_update_hardware_stats() reads different ICSSG
stats without any lock protection.
This API gets called by .ndo_get_stats64() which is only under RCU
protection and nothing else. Add lock to this API so that the reading of
statistics happens during lock.
Fixes: c1e10d5dc7a1 ("net: ti: icssg-prueth: Add ICSSG Stats")
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250314102721.1394366-1-danishanwar@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
