]> git.karo-electronics.de Git - karo-tx-linux.git/commit
audit: always follow va_copy() with va_end()
authorJesper Juhl <jj@chaosbits.net>
Wed, 5 Oct 2011 00:42:29 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 14 Oct 2011 06:19:32 +0000 (17:19 +1100)
commit894b22f0dca991c7cbbd88b81edd9b9222733eb0
tree5997eadd6fb5f47b3ee8c28d8b0caf8eb5b1dfbf
parenta6655ac4e459934a61f2143d306079a6660aeced
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 <akpm@linux-foundation.org>
kernel/audit.c