summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-01-19 10:20:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-01-19 10:20:30 +0000
commitd77b91da1628de336de15105281ab08750187b04 (patch)
treed8bcecc7c25f4936a1537b709283db0394eead57 /sys
parentb8054642d04452296efa4891101a1624831906fa (diff)
Zero a return value variable at the start of hifn_process() to avoid
using it uninitialised in one path.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/hifn7751.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 5436723128f..3814bdcf545 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.175 2016/11/29 10:22:30 jsg Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.176 2017/01/19 10:20:29 jsg Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -1925,7 +1925,7 @@ int
hifn_process(struct cryptop *crp)
{
struct hifn_command *cmd = NULL;
- int card, session, err, ivlen;
+ int card, session, err = 0, ivlen;
struct hifn_softc *sc;
struct cryptodesc *crd1, *crd2, *maccrd, *enccrd;