diff options
| author | Russell King (Oracle) <[email protected]> | 2023-07-24 16:57:14 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-07-25 20:07:57 -0700 |
| commit | 09bd2d7ddaedcdfa4aa3f4d54c103f984a93bd32 (patch) | |
| tree | 192c9acf26b428bdf331f031915dee13f872bdd8 /tools/perf/scripts/python/flamegraph.py | |
| parent | 8540336adadb84d5fc7864384e6d32506fa17560 (diff) | |
net: mdio_bus: validate "addr" for mdiobus_is_registered_device()
mdiobus_is_registered_device() doesn't checking that "addr" was valid
before dereferencing bus->mdio_map[]. Extract the code that checks
this from mdiobus_get_phy(), and use it here as well.
Signed-off-by: Russell King (Oracle) <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions