From 1b5d732ee331821e3d7e44e193a7ede5705095e5 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 5 Dec 1995 04:41:20 +0000 Subject: If the open fails, don't mark the device as open (duh!) symptom:.. once an open of a 'can only open it once' device fails.. you can never open it again, as it was marked open but wasn't open.. --- sys/scsi/scsi_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi/scsi_driver.c') diff --git a/sys/scsi/scsi_driver.c b/sys/scsi/scsi_driver.c index 23370a9..a49da2c 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.9 1995/05/03 18:09:11 dufault Exp $ + * $Id: scsi_driver.c,v 1.10 1995/05/30 08:13:37 rgrimes Exp $ * */ #include @@ -135,7 +135,7 @@ struct scsi_device *device) else errcode = (*device->dev_open)(dev, flags, fmt, p, sc_link); - sc_link->flags |= SDEV_IS_OPEN; + if (!errcode ) sc_link->flags |= SDEV_IS_OPEN; SC_DEBUG(sc_link, SDEV_DB1, ("%sopen: dev=0x%lx (unit %ld) result %d\n", device->name, dev, unit, errcode)); -- cgit v1.1