diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-01-29 14:18:34 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-01-29 14:18:34 +0000 |
| commit | 0f49e57b57b2e8c251f41fcd02a28874eb22b31d (patch) | |
| tree | 41ba5bffaed5094a40f17c6c0d36aff50dbfa725 | |
| parent | 26add149273eeaedff9eb1aa212992443dbc4484 (diff) | |
Notes
| -rw-r--r-- | sys/scsi/sd.c | 7 |
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 |
