git: d930ec4ff976 - main - dp83822phy: Add missing MII_PHY_END to avoid buffer overread on probe
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jan 2022 20:35:02 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=d930ec4ff976019c7c4d295a25c8fc39cfd2496c
commit d930ec4ff976019c7c4d295a25c8fc39cfd2496c
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2022-01-25 20:24:28 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-25 20:34:55 +0000
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 ac5c8b19be39..4980f06df1dd 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 = {