git: 3f707064a5f0 - main - dp83867phy: Add missing MII_PHY_END to avoid buffer overread on attach

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 20:35:00 UTC
The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f707064a5f03962152536dcdfb4cf75df79260d

commit 3f707064a5f03962152536dcdfb4cf75df79260d
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2022-01-25 20:24:27 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-25 20:34:55 +0000

    dp83867phy: Add missing MII_PHY_END to avoid buffer overread on attach
    
    Found by:       CHERI
    Fixes:          e85c94b8d6ca ("Introduce DP83867 PHY driver")
---
 sys/dev/mii/dp83867phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/mii/dp83867phy.c b/sys/dev/mii/dp83867phy.c
index 1a34554036e1..478be10b7f9f 100644
--- a/sys/dev/mii/dp83867phy.c
+++ b/sys/dev/mii/dp83867phy.c
@@ -101,7 +101,8 @@ struct dp83867_softc {
 };
 
 static const struct mii_phydesc dpphys[] = {
-	MII_PHY_DESC(xxTI, DP83867)
+	MII_PHY_DESC(xxTI, DP83867),
+	MII_PHY_END
 };
 
 static const struct mii_phy_funcs dpphy_funcs = {