]> git.karo-electronics.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>
Wed, 23 Nov 2011 03:04:48 +0000 (14:04 +1100)
commit125fa631ff0b18c816ec2ab48a1de6546e8d0ebb
tree6615d3c762710120c2e3439ea9ab950c52b98197
parent67089473678c4fc08a64e533b43590e308685bf4
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