From: Mattias Jacobsson <2pi@mok.nu> Date: Wed, 28 Nov 2018 16:16:07 +0000 (+0100) Subject: x86/boot: Add missing va_end() to die() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=69be4efeb959147ff86f22e35aea9526f9b86715;p=linux.git x86/boot: Add missing va_end() to die() Each call to va_start() must have a corresponding call to va_end() before the end of the function. Add the missing va_end(). Found with Coccinelle. Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Thomas Gleixner Link: https://lkml.kernel.org/r/20181128161607.10973-1-2pi@mok.nu --- diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c index bf0e824003584..a93d44e58f9ce 100644 --- a/arch/x86/boot/tools/build.c +++ b/arch/x86/boot/tools/build.c @@ -132,6 +132,7 @@ static void die(const char * str, ...) va_list args; va_start(args, str); vfprintf(stderr, str, args); + va_end(args); fputc('\n', stderr); exit(1); }