artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9514fd
)
cap the maximum sessions at 2048 since that's all that is available in
author
jason
<jason@openbsd.org>
Sat, 18 Mar 2000 02:41:45 +0000
(
02:41
+0000)
committer
jason
<jason@openbsd.org>
Sat, 18 Mar 2000 02:41:45 +0000
(
02:41
+0000)
the result descriptor (the command descriptor has an extra bit, but it
gets blown away in transit).
sys/dev/pci/hifn7751.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/hifn7751.c
b/sys/dev/pci/hifn7751.c
index
d5fe658
..
65f2379
100644
(file)
--- a/
sys/dev/pci/hifn7751.c
+++ b/
sys/dev/pci/hifn7751.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: hifn7751.c,v 1.1
3 2000/03/17 21:59:07
jason Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.1
4 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;
}
/*