audit: always follow va_copy() with va_end()
authorJesper Juhl <jj@chaosbits.net>
Sun, 8 Jan 2012 21:44:29 +0000 (22:44 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Jan 2012 22:15:21 +0000 (14:15 -0800)
commita0e86bd4252519321b0d102dc4ed90557aa7bee9
tree13c3cb632dfb85ea6b9f5c20273d793a99b20f15
parent7dd72f5189b257f927cc3b35d98643a5c392f5c3
audit: always follow va_copy() with va_end()

A call to va_copy() should always be followed by a call to va_end() in
the same function.  In kernel/autit.c::audit_log_vformat() this is not
always done.  This patch makes sure va_end() is always called.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/audit.c