summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-16 20:01:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-16 20:01:28 +0000
commite2ad0669a5a22303b12a01036bbc45b9af9bd2c9 (patch)
tree61156baacdbdf3a2f086c1cb8cb799618a21a218 /sys/dev/ic
parent579bd1399734a5a0e75a849cb3a0183ffe6dd446 (diff)
limit the scsi_link.openings to 128 to be safe
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/isp_openbsd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c
index 244cda5a518..ae20a45048b 100644
--- a/sys/dev/ic/isp_openbsd.c
+++ b/sys/dev/ic/isp_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp_openbsd.c,v 1.15 2001/01/09 03:27:04 mjacob Exp $ */
+/* $OpenBSD: isp_openbsd.c,v 1.16 2001/01/16 20:01:27 mickey Exp $ */
/*
* Platform (OpenBSD) dependent common attachment code for Qlogic adapters.
*
@@ -97,7 +97,7 @@ isp_attach(isp)
lptr->adapter_softc = isp;
lptr->device = &isp_dev;
lptr->adapter = &isp->isp_osinfo._adapter;
- lptr->openings = isp->isp_maxcmds;
+ lptr->openings = isp->isp_maxcmds > 128? 128 : isp->isp_maxcmds;
if (IS_FC(isp)) {
isp->isp_osinfo._adapter.scsi_cmd = ispcmd;
lptr->adapter_buswidth = MAX_FC_TARG;
@@ -115,7 +115,8 @@ isp_attach(isp)
lptrb->adapter_softc = isp;
lptrb->device = &isp_dev;
lptrb->adapter = &isp->isp_osinfo._adapter;
- lptrb->openings = isp->isp_maxcmds;
+ lptrb->openings = isp->isp_maxcmds > 128?
+ 128 : isp->isp_maxcmds;
lptrb->adapter_buswidth = MAX_TARGETS;
lptrb->adapter_target = sdp->isp_initiator_id;
lptrb->flags = SDEV_2NDBUS;