summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Knutsson <ricknu-0@student.ltu.se>2008-01-10 11:02:40 -0800
committerAl Viro <viro@zeniv.linux.org.uk>2008-02-01 14:24:57 -0500
commit148b38dc9309044c8656aa36d5fd86069e2ea7cc (patch)
tree905eaa71e29c5d4f65ef8a74e225db68d31cd934 /kernel/audit.c
parentef00be0554f1af9f2b685e0e3bb9e2ec0181937e (diff)
downloadblackbird-op-linux-148b38dc9309044c8656aa36d5fd86069e2ea7cc.tar.gz
blackbird-op-linux-148b38dc9309044c8656aa36d5fd86069e2ea7cc.zip
[patch 2/2] audit: complement va_copy with va_end()
Complement va_copy() with va_end(). Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index b617f69fd4e8..9e3e457ddfb5 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1151,6 +1151,7 @@ static void audit_log_vformat(struct audit_buffer *ab, const char *fmt,
goto out;
len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2);
}
+ va_end(args2);
if (len > 0)
skb_put(skb, len);
out:
OpenPOWER on IntegriCloud