⬢ DragonFlyBSD Kernel Audit
DF-3923 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/raid/hptmv/entry.c
+++ b/sys/dev/raid/hptmv/entry.c
@@ -2023,7 +2023,7 @@
 				hpt_intr, pAdapter, &pAdapter->hpt_intr, NULL))
 	{
 		hpt_printk(("can't set up interrupt\n"));
-		kfree(pAdapter, M_DEVBUF);
+		/* pAdapter is the newbus-owned softc; do not kfree it here */
 		return(ENXIO);
 	}