diff options
author | joerg <joerg@FreeBSD.org> | 1996-01-20 15:05:55 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-01-20 15:05:55 +0000 |
commit | fb3b6ba3b03063c224a9ffc657d1bbe6d55e8c33 (patch) | |
tree | 014abe66202dadace9fd5e67b4b269fa7e4e0462 /sys/scsi/scsi_driver.c | |
parent | 67ab82dff8bcc3226fa4300bd7522d7d641979aa (diff) | |
download | FreeBSD-src-fb3b6ba3b03063c224a9ffc657d1bbe6d55e8c33.zip FreeBSD-src-fb3b6ba3b03063c224a9ffc657d1bbe6d55e8c33.tar.gz |
Make the "uk" device usable again. The open() always failed due to an internal driver
design problem.
Diffstat (limited to 'sys/scsi/scsi_driver.c')
-rw-r--r-- | sys/scsi/scsi_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_driver.c b/sys/scsi/scsi_driver.c index 5db60ca..45f2ca2 100644 --- a/sys/scsi/scsi_driver.c +++ b/sys/scsi/scsi_driver.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_driver.c,v 1.11 1995/12/05 04:41:20 julian Exp $ + * $Id: scsi_driver.c,v 1.12 1995/12/05 07:14:23 julian Exp $ * */ #include <sys/types.h> @@ -120,7 +120,7 @@ struct scsi_device *device) /* * Check the unit is legal */ - if (sc_link == 0 || sc_link->sd == 0) + if (sc_link == 0 || (sc_link->sd == 0 && !(sc_link->flags & SDEV_UK))) return ENXIO; /* If it is a "once only" device that is already open return EBUSY. |