]> git.karo-electronics.de Git - karo-tx-linux.git/commit
audit: always follow va_copy() with va_end()
authorJesper Juhl <jj@chaosbits.net>
Wed, 28 Sep 2011 00:49:43 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Sep 2011 06:07:52 +0000 (16:07 +1000)
commit3b54484369d5e456bdedf2a06cefde6f91202058
treeba1cdcbb8b629e003ccaaaf0ce8756277d2cd00b
parent6f84f546e4650f48d615db8a136bef5d39a2e7a1
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>
Signed-off-by: Andrew Morton <>
kernel/audit.c