dp83867phy: Add missing MII_PHY_END to avoid buffer overread on attach

Found by:	CHERI
Fixes:		e85c94b8d6 ("Introduce DP83867 PHY driver")
This commit is contained in:
Jessica Clarke 2022-01-25 20:24:27 +00:00
parent 8de1a8131e
commit 3f707064a5

View file

@ -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 = {