diff options
author | Heiner Kallweit <[email protected]> | 2023-01-15 11:54:06 +0100 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-01-17 12:43:23 +0100 |
commit | 867dbe784c5010a466f00a7d1467c1c5ea569c75 (patch) | |
tree | 32a6f7c8882af5b66e90204601a0f4d003d366e0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | ecf7cf8efb59789e2b21d2f9ab926142579092b2 (diff) |
net: mdio: validate parameter addr in mdiobus_get_phy()
The caller may pass any value as addr, what may result in an out-of-bounds
access to array mdio_map. One existing case is stmmac_init_phy() that
may pass -1 as addr. Therefore validate addr before using it.
Fixes: 7f854420fbfe ("phy: Add API for {un}registering an mdio device to a bus.")
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[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