DragonFlyBSD Kernel Audit
DF-1100 / fix.diff
← back to finding ↓ download raw
--- /tmp/orig/bus/u4b/usb_pf.c	2026-07-23 11:54:56.744810000 +0000
+++ bus/u4b/usb_pf.c	2026-07-23 11:59:07.567899000 +0000
@@ -188,10 +188,10 @@
 	ubus = ifp->if_softc;
 	unit = ifp->if_dunit;
 
-	ubus->ifp = NULL;
 	bpfdetach(ifp);
 	if_detach(ifp);
 	if_free(ifp);
+	ubus->ifp = NULL;
 
 	return (0);
 }