DragonFlyBSD Kernel Audit
DF-1831 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/misc/ichwd/ichwd.c b/sys/dev/misc/ichwd/ichwd.c
--- a/sys/dev/misc/ichwd/ichwd.c
+++ b/sys/dev/misc/ichwd/ichwd.c
@@ -601,7 +601,6 @@
 
 	return (0);
  fail:
-	sc = device_get_softc(dev);
 	if (sc->tco_res != NULL)
 		bus_release_resource(dev, SYS_RES_IOPORT,
 		    sc->tco_rid, sc->tco_res);