summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-08-10 20:13:58 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-08-10 20:13:58 +0000
commit6bf72137e8fe404101dee4ec721cb200ee495be4 (patch)
treeffc6de0bfea365292cbf802c89e2ed87c09a214b /sys/dev/pv
parentc5b1161eac7a9e74a903806fba19f36288845966 (diff)
Don't forget to call va_end in xen_hypercall
Coverity CID 1453343
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/xen.c3
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));
}