Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi fix scsipi_target_detach with wildcard target.
details: https://anonhg.NetBSD.org/src/rev/f2df65125fa5
branches: trunk
changeset: 513977:f2df65125fa5
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Aug 19 14:05:13 2001 +0000
description:
fix scsipi_target_detach with wildcard target.
diffstat:
sys/dev/scsipi/scsipi_base.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 1a44e47e858c -r f2df65125fa5 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c Sun Aug 19 13:15:18 2001 +0000
+++ b/sys/dev/scsipi/scsipi_base.c Sun Aug 19 14:05:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipi_base.c,v 1.51 2001/07/18 20:19:24 bouyer Exp $ */
+/* $NetBSD: scsipi_base.c,v 1.52 2001/08/19 14:05:13 yamt Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -2349,12 +2349,12 @@
maxlun = lun + 1;
}
- for (ctarget = 0; ctarget < chan->chan_ntargets; ctarget++) {
+ for (ctarget = mintarget; ctarget < maxtarget; ctarget++) {
if (ctarget == chan->chan_id)
continue;
for (clun = minlun; clun < maxlun; clun++) {
- periph = scsipi_lookup_periph(chan, target, clun);
+ periph = scsipi_lookup_periph(chan, ctarget, clun);
if (periph == NULL)
continue;
error = config_detach(periph->periph_dev, flags);
Home |
Main Index |
Thread Index |
Old Index