summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-03-18 02:41:46 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-03-18 02:41:46 +0000
commit977b544f77a446a56a19bc31a3809b0c71ec562e (patch)
tree514f9822cffc1eed64f46060e39282cba3247e22 /sys/dev
parentfc0a51a29e19587af4e300c2cc10acdae7f91b06 (diff)
cap the maximum sessions at 2048 since that's all that is available in
the result descriptor (the command descriptor has an extra bit, but it gets blown away in transit).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/hifn7751.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index d5fe658888f..65f2379d37b 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.13 2000/03/17 21:59:07 jason Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.14 2000/03/18 02:41:45 jason Exp $ */
/*
* Invertex AEON / Hi/fn 7751 driver
@@ -495,6 +495,9 @@ hifn_sessions(sc)
}
else
sc->sc_maxses = sc->sc_ramsize / 16384;
+
+ if (sc->sc_maxses > 2048)
+ sc->sc_maxses = 2048;
}
/*