x86: add missing va_end to hypercall_xlat_continuation
authorMatthew Daley <mattjd@gmail.com>
Tue, 10 Sep 2013 15:15:35 +0000 (17:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Sep 2013 15:15:35 +0000 (17:15 +0200)
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>
xen/arch/x86/domain.c

index f7b0308e24bab49a5e947dfe45bfd4c21be4f029..316ef0452e620817335915870a3c230e1e4173a7 100644 (file)
@@ -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 )