diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-01-19 10:20:30 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-01-19 10:20:30 +0000 |
commit | d77b91da1628de336de15105281ab08750187b04 (patch) | |
tree | d8bcecc7c25f4936a1537b709283db0394eead57 /sys | |
parent | b8054642d04452296efa4891101a1624831906fa (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.c | 4 |
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; |