From b163ce2f659fabf9c5f0a60bb159fc4da65e0353 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 1 Feb 1998 19:10:04 +0000 Subject: [PATCH] Fixed the search for free wd drives. The search was terminated prematurely when there was a hole (for a cdrom or an unused interface) in the sequence of wd drives. This caused non-free wd units to be probed as atapi drives. There was no problem provided the atapi probe failed correctly. --- sys/i386/isa/wd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c index d66945929c3d..fa845ada1920 100644 --- a/sys/i386/isa/wd.c +++ b/sys/i386/isa/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.148 1998/01/24 02:01:13 dyson Exp $ + * $Id: wd.c,v 1.149 1998/01/24 02:54:27 eivind Exp $ */ /* TODO: @@ -547,8 +547,9 @@ wdattach(struct isa_device *dvp) * Probe all free IDE units, searching for ATAPI drives. */ for (unit=0; unit<2; ++unit) { - for (lunit=0; lunitdk_ctrlr == dvp->id_unit && + for (lunit=0; lunitdk_ctrlr == dvp->id_unit && wddrives[lunit]->dk_unit == unit) goto next; #ifdef CMD640