summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorMarkus Stockhausen <markus.stockhausen@gmx.de>2026-06-03 19:59:19 +0200
committerJakub Kicinski <kuba@kernel.org>2026-06-05 18:38:55 -0700
commit829ee0f8bc3920092b06d32d9e05328395ed5b77 (patch)
treec0f59dae327df8089aabace3b27ed2508232e2f5 /include/linux/timerqueue.h
parentf369dd8ccf2dbce9166544e266e2b6ca974f98d9 (diff)
net: mdio: realtek-rtl9300: harden otto_emdio_map_ports()
Due to its design the MDIO driver needs to set up a port to bus/address mapping during probing. The "ethernet-ports" subnodes are scanned and from the "phy-handle" property the MDIO nodes are looked up. In case of a malformed device tree the driver might produce out-of-bounds accesses. The PHY address is not checked against the maximum supported address. Add a sanity check and drop the unneeded MAX_SMI_ADDR define. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://patch.msgid.link/20260603175924.123019-3-markus.stockhausen@gmx.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions