Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc no need to guess about tgt/lun bounds- ...
details: https://anonhg.NetBSD.org/src/rev/b9c90da69fdb
branches: trunk
changeset: 480431:b9c90da69fdb
user: mjacob <mjacob%NetBSD.org@localhost>
date: Wed Jan 12 14:53:17 2000 +0000
description:
no need to guess about tgt/lun bounds- we know what they are
diffstat:
sys/arch/sparc/sparc/autoconf.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 59750efa54ac -r b9c90da69fdb sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c Wed Jan 12 14:46:43 2000 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c Wed Jan 12 14:53:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.129 2000/01/11 20:53:24 pk Exp $ */
+/* $NetBSD: autoconf.c,v 1.130 2000/01/12 14:53:17 mjacob Exp $ */
/*
* Copyright (c) 1996
@@ -1742,9 +1742,10 @@
u_int lun = bp->val[1];
/*
- * Bounds check; XXX - guess a reasonable target/lun bound.
+ * Bounds check: we know the target and lun widths.
*/
- if (target >= 16 || lun >= 16) {
+ if (target > sc_link->scsipi_scsi.max_target ||
+ lun > sc_link->scsipi_scsi.max_lun) {
printf("SCSI disk bootpath component not accepted: "
"target %u; lun %u\n", target, lun);
return;
Home |
Main Index |
Thread Index |
Old Index