⬢ DragonFlyBSD Kernel Audit
DF-3749 / fix.diff
← back to finding ↓ download raw
diff -u -r a/sys/dev/netif/ral/rt2860.c b/sys/dev/netif/ral/rt2860.c
--- a/sys/dev/netif/ral/rt2860.c	2026-09-16 01:11:10.520383990 +0000
+++ b/sys/dev/netif/ral/rt2860.c	2026-09-16 01:11:15.836316910 +0000
@@ -906,6 +906,9 @@
 
 		/* clear Rx WCID search table entry */
 		RAL_SET_REGION_4(sc, RT2860_WCID_ENTRY(wcid), 0, 2);
+
+		/* drop the driver's borrowed wcid2ni[] reference (DF-3749) */
+		sc->wcid2ni[wcid] = NULL;
 	}
 	sc->sc_node_free(ni);
 }