diff options
author | Andrew Lunn <[email protected]> | 2021-10-24 21:48:05 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-10-25 14:06:43 +0100 |
commit | af1a02aa23c37045e6adfcf074cf7dbac167a403 (patch) | |
tree | e527db05dce25d753a20424239054648169bcca5 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 707293a56f95f8e7e0cfae008010c7933fb68973 (diff) |
phy: phy_ethtool_ksettings_set: Lock the PHY while changing settings
There is a race condition where the PHY state machine can change
members of the phydev structure at the same time userspace requests a
change via ethtool. To prevent this, have phy_ethtool_ksettings_set
take the PHY lock.
Fixes: 2d55173e71b0 ("phy: add generic function to support ksetting support")
Reported-by: Walter Stoll <[email protected]>
Suggested-by: Walter Stoll <[email protected]>
Tested-by: Walter Stoll <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions