diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-03-18 07:01:31 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-03-18 07:01:31 +0000 |
| commit | b3fd9b46bb879d959a9916e4ddf47f288c3310c6 (patch) | |
| tree | 062542ae673b3b8dae792e6c31a526615d889295 | |
| parent | b3b21113a53d91997c3c86ff8f89b3e07ca0ef6f (diff) | |
Notes
| -rw-r--r-- | sys/geom/geom_disk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index c4210c2537837..53c8c15f25d09 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: |
