aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-01-29 14:18:34 +0000
committerBruce Evans <bde@FreeBSD.org>1997-01-29 14:18:34 +0000
commit0f49e57b57b2e8c251f41fcd02a28874eb22b31d (patch)
tree41ba5bffaed5094a40f17c6c0d36aff50dbfa725 /sys
parent26add149273eeaedff9eb1aa212992443dbc4484 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/sd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index c38bef73bdf4..c47e71b8117f 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -281,7 +281,7 @@ sd_open(dev, mode, fmt, p, sc_link)
* If it's been invalidated, then forget the label
*/
sc_link->flags |= SDEV_OPEN; /* unit attn becomes an err now */
- if (!(sc_link->flags & SDEV_MEDIA_LOADED)) {
+ if (!(sc_link->flags & SDEV_MEDIA_LOADED) && sd->dk_slices != NULL) {
/*
* If somebody still has it open, then forbid re-entry.
*/
@@ -290,10 +290,7 @@ sd_open(dev, mode, fmt, p, sc_link)
goto bad;
}
- if (sd->dk_slices == NULL)
- Debugger("sdopen: no slices");
- else
- dsgone(&sd->dk_slices);
+ dsgone(&sd->dk_slices);
}
/*
* In case it is a funny one, tell it to start