diff options
author | Heiner Kallweit <[email protected]> | 2023-01-15 18:24:08 +0100 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-01-17 13:33:19 +0100 |
commit | 1f3bd64ad921f051254591fbed04fd30b306cde6 (patch) | |
tree | 45abea8a4a7fd72f49270bf2c3b1f3d9f762047e /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 867dbe784c5010a466f00a7d1467c1c5ea569c75 (diff) |
net: stmmac: fix invalid call to mdiobus_get_phy()
In a number of cases the driver assigns a default value of -1 to
priv->plat->phy_addr. This may result in calling mdiobus_get_phy()
with addr parameter being -1. Therefore check for this scenario and
bail out before calling mdiobus_get_phy().
Fixes: 42e87024f727 ("net: stmmac: Fix case when PHY handle is not present")
Signed-off-by: Heiner Kallweit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions