mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: boot: add missing va_end to die
@ 2018-11-28 16:16 Mattias Jacobsson
  2018-11-28 19:15 ` [tip:x86/boot] x86/boot: Add missing va_end() to die() tip-bot for Mattias Jacobsson
  0 siblings, 1 reply; 2+ messages in thread
From: Mattias Jacobsson @ 2018-11-28 16:16 UTC (permalink / raw)
  To: tglx, mingo, bp, hpa; +Cc: x86, linux-kernel, 2pi

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>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-28 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 16:16 [PATCH] x86: boot: add missing va_end to die Mattias Jacobsson
2018-11-28 19:15 ` [tip:x86/boot] x86/boot: Add missing va_end() to die() tip-bot for Mattias Jacobsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome