diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-08-10 20:13:58 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-08-10 20:13:58 +0000 |
commit | 6bf72137e8fe404101dee4ec721cb200ee495be4 (patch) | |
tree | ffc6de0bfea365292cbf802c89e2ed87c09a214b /sys/dev/pv/xen.c | |
parent | c5b1161eac7a9e74a903806fba19f36288845966 (diff) |
Don't forget to call va_end in xen_hypercall
Coverity CID 1453343
Diffstat (limited to 'sys/dev/pv/xen.c')
-rw-r--r-- | sys/dev/pv/xen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index cfb709471a4..3314f82950a 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.89 2017/07/21 20:00:47 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.90 2017/08/10 20:13:57 mikeb Exp $ */ /* * Copyright (c) 2015, 2016, 2017 Mike Belopuhov @@ -305,6 +305,7 @@ xen_hypercall(struct xen_softc *sc, int op, int argc, ...) va_start(ap, argc); for (i = 0; i < argc; i++) argv[i] = (ulong)va_arg(ap, ulong); + va_end(ap); return (xen_hypercallv(sc, op, argc, argv)); } |