From 23dd4ed4779db244d5cd4c702cf63e2b6729562d Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Wed, 20 Dec 1995 12:02:43 +0000 Subject: [PATCH] Bruce's fix for when dk_ndrive >= DK_NDRIVE. Fixes CDROM changer and other "lots of CDROM devices" problems. This code should be put in a single place. --- sys/scsi/cd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 94a5d0f91739..49b2efe31fa1 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: cd.c,v 1.52 1995/12/10 20:02:47 bde Exp $ + * $Id: cd.c,v 1.53 1995/12/14 09:54:18 phk Exp $ */ #define SPLCD splbio @@ -588,7 +588,7 @@ cdstart(unit, flags) return; } cdqueues++; - if(cd->dkunit) { + if(cd->dkunit >= 0) { dk_xfer[cd->dkunit]++; dk_seek[cd->dkunit]++; /* don't know */ dk_wds[cd->dkunit] += bp->b_bcount >> 6;