summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-03-30 07:30:40 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-03-30 07:30:40 +0000
commit197f76411c95a1d4811436246a6e3e77c6dfa33b (patch)
treece2ca2fab2363a83386257189a379ec9a93ed4cc /sys/dev
parent818138c5cc97c89ed0b015621c7c4417127d5946 (diff)
instrument bad crp's and bad crp callbacks, too
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/hifn7751.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 9c8a12f87cc..7b22b85b821 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.20 2000/03/30 05:56:31 jason Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.21 2000/03/30 07:30:39 jason Exp $ */
/*
* Invertex AEON / Hi/fn 7751 driver
@@ -1304,8 +1304,10 @@ hifn_process(crp)
struct hifn_softc *sc;
struct cryptodesc *crd;
- if (crp == NULL || crp->crp_callback == NULL)
+ if (crp == NULL || crp->crp_callback == NULL) {
+ hifnstats.hst_invalid++;
return (EINVAL);
+ }
card = HIFN_CARD(crp->crp_sid);
if (card >= hifn_cd.cd_ndevs || hifn_cd.cd_devs[card] == NULL) {