git: 6d7d95b4758d - stable/14 - dc(4): fix argument to if_foreach_llmaddr() for 21143.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jan 2026 19:41:10 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=6d7d95b4758d04adcf051d6dcf7355caf4a1f2cd
commit 6d7d95b4758d04adcf051d6dcf7355caf4a1f2cd
Author: Chris Johns <chrisj@rtems.org>
AuthorDate: 2025-10-17 12:38:30 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-16 19:37:51 +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.
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 809feed7855f..48d41f8da949 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));