]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
audit: always follow va_copy() with va_end()
authorJesper Juhl <jj@chaosbits.net>
Wed, 16 Nov 2011 23:41:34 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 02:57:14 +0000 (13:57 +1100)
commit1a49e267fbf8a2978470d5a2a34713114581f030
tree69103d7cc4a46cebcac3015c8ef40a9003060270
parenta6d822a4cda6bd737936b4d4d60488bd4eec0fa6
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