[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20071124215015.20181.76052.sendpatchset@thinktank.campus.ltu.se>
Date: Sat, 24 Nov 2007 23:01:49 +0100 (MET)
From: Richard Knutsson <ricknu-0@...dent.ltu.se>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org,
Richard Knutsson <ricknu-0@...dent.ltu.se>
Subject: [PATCH] kernel: Compliment va_copy with va_end()
Compliment va_copy() with va_end().
Signed-off-by: Richard Knutsson <ricknu-0@...dent.ltu.se>
---
Compile-tested on i386 with allyesconfig & allmodconfig.
diff --git a/kernel/audit.c b/kernel/audit.c
index f93c271..836626c 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1245,6 +1245,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:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists