A call to va_copy() should always be followed by a call to va_end() in the
commit6cf22acb153510093d0d55c20bf9a6784d10c546
authorJesper Juhl <jj@chaosbits.net>
Wed, 24 Aug 2011 23:46:19 +0000 (25 09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Aug 2011 04:27:20 +0000 (31 14:27 +1000)
treeb4d4605351dfd0ecb08285710d62acd00bcfa5e7
parentbc650c905d5a262b26666743974f492c5aef4464
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/audit.c