diff options
| author | Markus Stockhausen <markus.stockhausen@gmx.de> | 2026-06-03 19:59:19 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-05 18:38:55 -0700 |
| commit | 829ee0f8bc3920092b06d32d9e05328395ed5b77 (patch) | |
| tree | c0f59dae327df8089aabace3b27ed2508232e2f5 /include/linux/timerqueue.h | |
| parent | f369dd8ccf2dbce9166544e266e2b6ca974f98d9 (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
