From d930ec4ff976019c7c4d295a25c8fc39cfd2496c Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Tue, 25 Jan 2022 20:24:28 +0000 Subject: [PATCH] dp83822phy: Add missing MII_PHY_END to avoid buffer overread on probe Found by: CHERI Fixes: 0c9156faeccb ("Introduce DP83822 PHY driver") --- sys/dev/mii/dp83822phy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/mii/dp83822phy.c b/sys/dev/mii/dp83822phy.c index ac5c8b19be3..4980f06df1d 100644 --- a/sys/dev/mii/dp83822phy.c +++ b/sys/dev/mii/dp83822phy.c @@ -86,7 +86,8 @@ struct dp83822_softc { }; static const struct mii_phydesc dpphys[] = { - MII_PHY_DESC(xxTI, DP83822) + MII_PHY_DESC(xxTI, DP83822), + MII_PHY_END }; static const struct mii_phy_funcs dpphy_funcs = {