diff options
Diffstat (limited to 'sys/geom/part/g_part.c')
-rw-r--r-- | sys/geom/part/g_part.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 2129f39..b9fca08 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -1748,7 +1748,7 @@ g_part_orphan(struct g_consumer *cp) KASSERT(pp->error != 0, (__func__)); table = cp->geom->softc; - if (table->gpt_opened) + if (table != NULL && table->gpt_opened) g_access(cp, -1, -1, -1); g_part_wither(cp->geom, pp->error); } |