git: 71f065aab558 - releng/15.0 - dc(4): fix argument to if_foreach_llmaddr() for 21143.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Oct 2025 05:47:46 UTC
The branch releng/15.0 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=71f065aab558123a35a885b1a9e205380fd551f5
commit 71f065aab558123a35a885b1a9e205380fd551f5
Author: Chris Johns <chrisj@rtems.org>
AuthorDate: 2025-10-17 12:38:30 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-21 05:45:08 +0000
dc(4): fix argument to if_foreach_llmaddr() for 21143.
As found on RTEMS the argument to if_foreach_llmaddr() was wrong
causing crashes.
Approved by: re (cperciva)
Fixes: 51e80820552e0
PR: 290314
(cherry picked from commit 33afdf0e356d84ffe5c62c886f84cf12ba147d3e)
(cherry picked from commit 10c71151ade7b5f021b49b7e117059730a2ddb56)
---
sys/dev/dc/if_dc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index bed74c3b6181..5c1d7ff30976 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -999,7 +999,7 @@ dc_setfilt_21143(struct dc_softc *sc)
else
DC_CLRBIT(sc, DC_NETCFG, DC_NETCFG_RX_ALLMULTI);
- if_foreach_llmaddr(ifp, dc_hash_maddr_21143, sp);
+ if_foreach_llmaddr(ifp, dc_hash_maddr_21143, sc);
if (if_getflags(ifp) & IFF_BROADCAST) {
h = dc_mchash_le(sc, if_getbroadcastaddr(ifp));