aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/domain.c
diff options
context:
space:
mode:
authorMatthew Daley <mattjd@gmail.com>2013-09-10 17:15:35 +0200
committerJan Beulich <jbeulich@suse.com>2013-09-10 17:15:35 +0200
commit26d8a37c598464cd097fac42640dbf02c4f405f7 (patch)
tree69251f453443d8eac4c5088f6b15e4c99009098e /xen/arch/x86/domain.c
parentac2f555e37f589fde27c68a306aaac14a424040b (diff)
downloadxen-26d8a37c598464cd097fac42640dbf02c4f405f7.tar.gz
xen-26d8a37c598464cd097fac42640dbf02c4f405f7.tar.bz2
xen-26d8a37c598464cd097fac42640dbf02c4f405f7.zip
x86: add missing va_end to hypercall_xlat_continuation
Coverity-ID: 1056208 Signed-off-by: Matthew Daley <mattjd@gmail.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/domain.c')
-rw-r--r--xen/arch/x86/domain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index f7b0308e24..316ef0452e 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -1648,7 +1648,11 @@ int hypercall_xlat_continuation(unsigned int *id, unsigned int mask, ...)
if ( test_bit(_MCSF_in_multicall, &mcs->flags) )
{
if ( !test_bit(_MCSF_call_preempted, &mcs->flags) )
+ {
+ va_end(args);
return 0;
+ }
+
for ( i = 0; i < 6; ++i, mask >>= 1 )
{
if ( mask & 1 )