dp83822phy: Add missing MII_PHY_END to avoid buffer overread on probe

Found by:	CHERI
Fixes:		0c9156faeccb ("Introduce DP83822 PHY driver")
This commit is contained in:
Jessica Clarke 2022-01-25 20:24:28 +00:00
parent 3f707064a5
commit d930ec4ff9

View File

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