diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index c4210c253783..53c8c15f25d0 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -240,8 +240,10 @@ g_disk_start(struct bio *bp) off_t off; dp = bp->bio_to->geom->softc; - if (dp == NULL || dp->d_destroyed) + if (dp == NULL || dp->d_destroyed) { g_io_deliver(bp, ENXIO); + return; + } error = EJUSTRETURN; switch(bp->bio_cmd) { case BIO_DELETE: