summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2023-07-24 18:57:14 +0300
committerJakub Kicinski <kuba@kernel.org>2023-07-26 06:07:57 +0300
commit09bd2d7ddaedcdfa4aa3f4d54c103f984a93bd32 (patch)
tree192c9acf26b428bdf331f031915dee13f872bdd8 /net/switchdev/switchdev.c
parent8540336adadb84d5fc7864384e6d32506fa17560 (diff)
downloadlinux-09bd2d7ddaedcdfa4aa3f4d54c103f984a93bd32.tar.xz
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) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/E1qNxvu-00111m-1V@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions