Skip to content

Commit

Permalink
[patch 2/2] audit: complement va_copy with va_end()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Knutsson authored and Al Viro committed Feb 1, 2008
1 parent ef00be0 commit 148b38d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 148b38d

Please sign in to comment.