summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_fox.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_fox.c')
-rw-r--r--sys/geom/geom_fox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_fox.c b/sys/geom/geom_fox.c
index 3178649..df4b68c 100644
--- a/sys/geom/geom_fox.c
+++ b/sys/geom/geom_fox.c
@@ -452,9 +452,9 @@ g_fox_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp)
g_topology_assert();
sc = gp->softc;
- gp->softc = NULL;
mtx_destroy(&sc->lock);
g_free(gp->softc);
+ gp->softc = NULL;
g_wither_geom(gp, ENXIO);
return (0);
}
OpenPOWER on IntegriCloud