[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>
This commit is contained in:
parent
ef00be0554
commit
148b38dc93
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue