Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2022 20:35:02 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d930ec4ff976 - main - dp83822phy: Add missing MII_PHY_END to avoid buffer overread on probe
Message-ID:  <202201252035.20PKZ25L079909@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201252035.20PKZ25L079909>