From: Matthew Daley Date: Tue, 10 Sep 2013 15:15:35 +0000 (+0200) Subject: x86: add missing va_end to hypercall_xlat_continuation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6382 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=26d8a37c598464cd097fac42640dbf02c4f405f7;p=xen.git x86: add missing va_end to hypercall_xlat_continuation Coverity-ID: 1056208 Signed-off-by: Matthew Daley Reviewed-by: Andrew Cooper Acked-by: Keir Fraser --- 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 )