Files
u-boot/drivers/net
Francois Berder 919af6e49b net: ti: icssg: Fix portname buffer overflow
portname consists of dev->parent->name ("icssg0-eth",
"icssg1-eth", or "ethernet") and dev->name is the port node
name ("port@0" or "port@1").  Every board DTS in the repository
produces a string that overflows the buffer:

"icssg1-eth-port@0"  17 chars + NUL = 18 bytes  (AM642 EVM, IoT2050)
"ethernet-port@0"    15 chars + NUL = 16 bytes  (SR-SOM, phyboard)

This commits increases portname to 64 bytes and replaces sprintf
by snprintf so that any future DT node name cannot overflow it
regardless of length.

Signed-off-by: Francois Berder <fberder@outlook.fr>
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com>
2026-06-03 17:22:24 +02:00
..
2026-03-31 16:43:28 +02:00
2025-08-27 15:39:58 +08:00
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2022-11-28 10:25:17 -05:00
2026-01-21 12:05:15 -06:00
2022-12-22 10:31:48 -05:00
2026-03-31 16:54:11 +02:00
2026-04-27 11:26:40 -06:00
2025-07-10 19:26:55 +02:00
2024-01-29 22:35:02 -05:00