⬢ DragonFlyBSD Kernel Audit
DF-2789 / fix.diff
← back to finding ↓ download raw
--- sys/kern/subr_blist.c	2026-06-29 12:51:19.000000000 +0000
+++ /tmp/opencode/v26/fixtree/sys/kern/subr_blist.c	2026-10-24 16:33:07.741716173 +0000
@@ -657,7 +657,7 @@
 		if (v > count)
 			v = count;
 
-		if (scan->bm_bighint == (swblk_t)-1)
+		if (scan[i].bm_bighint == (swblk_t)-1)
 			panic("%s: freeing unexpected range", __func__);
 
 		if (next_skip == 1) {
@@ -772,7 +772,7 @@
 		if (v > count)
 			v = count;
 
-		if (scan->bm_bighint == (swblk_t)-1)
+		if (scan[i].bm_bighint == (swblk_t)-1)
 			panic("%s: filling unexpected range", __func__);
 
 		if (next_skip == 1) {