Date: Tue, 25 Jan 2022 20:35:00 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: 3f707064a5f0 - main - dp83867phy: Add missing MII_PHY_END to avoid buffer overread on attach Message-ID: <202201252035.20PKZ0pe079885@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=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 = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201252035.20PKZ0pe079885>