diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-02-16 21:13:32 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-02-16 21:13:32 +0000 |
commit | 02ba6ef4276aced0ecad6ed5dc9b0a7e1cd1d4ad (patch) | |
tree | 7b7fe8ba0a7e1d1163a79d7f47ab836c4cc275e6 /sys | |
parent | 7f3e5aedcc66cb3408d33cbe76a8bfa5d4c4454f (diff) |
Don't try to SCSIDEBUG targets or luns >31 since we only have 32 bits to
use to identify devices of interest.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/scsiconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index ce3813d5430..11b979d9ba3 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.136 2009/02/16 00:05:03 dlg Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.137 2009/02/16 21:13:31 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -748,8 +748,8 @@ scsi_probedev(struct scsibus_softc *scsi, int target, int lun) */ #ifdef SCSIDEBUG if (((1 << sc_link->scsibus) & scsidebug_buses) && - ((1 << target) & scsidebug_targets) && - ((1 << lun) & scsidebug_luns)) + ((target < 32) && ((1 << target) & scsidebug_targets)) && + ((lun < 32) && ((1 << lun) & scsidebug_luns))) sc_link->flags |= scsidebug_level; #endif /* SCSIDEBUG */ |