diff options
| author | Peter Geis <[email protected]> | 2021-05-29 07:05:56 -0400 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-05-30 14:24:38 -0700 |
| commit | 0cc8bddb5b0665283baba6d89684630663c0ccbd (patch) | |
| tree | 2f6316473747920bdcaf82e9f398751838b97bcd /tools/perf/scripts/python/sctop.py | |
| parent | 546d6bad18c04926c4d0eba4222654a9a60ea830 (diff) | |
net: phy: abort loading yt8511 driver in unsupported modes
While investigating the clang `ge` uninitialized variable report, it was
discovered the default switch would have unintended consequences. Due to
the switch to __phy_modify, the driver would modify the ID values in the
default scenario.
Fix this by promoting the interface mode switch and aborting when the
mode is not a supported RGMII mode.
This prevents the `ge` and `fe` variables from ever being used
uninitialized.
Fixes: 48e8c6f1612b ("net: phy: add driver for Motorcomm yt8511 phy")
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Peter Geis <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions