]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
audit: always follow va_copy() with va_end()
authorJesper Juhl <jj@chaosbits.net>
Fri, 16 Dec 2011 04:50:04 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:43 +0000 (18:43 +1100)
commit60d9d6704ed156c96eb7d373f2d68187f9e0d7e0
tree81f791ebfa76b57a52476c7e6244ea2328caed76
parentf83d38cb20d57ca959a64ee07c662bbd828f6c11
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