mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel: Compliment va_copy with va_end()
@ 2007-11-24 22:01 Richard Knutsson
  0 siblings, 0 replies; only message in thread
From: Richard Knutsson @ 2007-11-24 22:01 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Richard Knutsson

Compliment va_copy() with va_end().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Compile-tested on i386 with allyesconfig & allmodconfig.


diff --git a/kernel/audit.c b/kernel/audit.c
index f93c271..836626c 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1245,6 +1245,7 @@ static void audit_log_vformat(struct audit_buffer *ab, const char *fmt,
 			goto out;
 		len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2);
 	}
+	va_end(args2);
 	if (len > 0)
 		skb_put(skb, len);
 out:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-24 22:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24 22:01 [PATCH] kernel: Compliment va_copy with va_end() Richard Knutsson

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

all inboxes | Powered by JetHome®