]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
drivers/net/airoha_eth: add missing terminator for compatible devices list
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Wed, 9 Jul 2025 09:28:07 +0000 (12:28 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jul 2025 15:56:01 +0000 (09:56 -0600)
Compatible device list must have a terminator. If terminator is missed
the u-boot driver subsystem will access random data placed after the
list in the memory.

The issue can be observed with the "dm compat" command.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/net/airoha_eth.c

index 7e35e1fd41d48163e4fc9c2505eb97691c5c70fc..2aa42b3d7278a66c81c7849eb62436f6d3a1b494 100644 (file)
@@ -926,6 +926,7 @@ static int arht_eth_write_hwaddr(struct udevice *dev)
 
 static const struct udevice_id airoha_eth_ids[] = {
        { .compatible = "airoha,en7581-eth" },
+       { }
 };
 
 static const struct eth_ops airoha_eth_ops = {