[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181128161607.10973-1-2pi@mok.nu>
Date: Wed, 28 Nov 2018 17:16:07 +0100
From: Mattias Jacobsson <2pi@....nu>
To: <tglx@...utronix.de>, <mingo@...hat.com>, <bp@...en8.de>,
<hpa@...or.com>
CC: <x86@...nel.org>, <linux-kernel@...r.kernel.org>, <2pi@....nu>
Subject: [PATCH] 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@....nu>
---
arch/x86/boot/tools/build.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c
index d4e6cd4577e5..07223fd42d01 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);
}
--
2.19.2
Powered by blists - more mailing lists