[patch 2/2] audit: complement va_copy with va_end()
Complement va_copy() with va_end().
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
diff --git a/kernel/audit.c b/kernel/audit.c
index b617f69..9e3e457 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1151,6 +1151,7 @@
goto out;
len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2);
}
+ va_end(args2);
if (len > 0)
skb_put(skb, len);
out: