[<prev] [next>] [day] [month] [year] [list]
Date: Sat, 13 Dec 2014 01:32:40 +0100
From: Thomas Jarosch <thomas.jarosch@...ra2net.com>
To: sparmaintainer@...sys.com
CC: linux-kernel@...r.kernel.org
Subject: [staging PATCH] Add missing va_end() call
Reported by cppcheck
Signed-off-by: Thomas Jarosch <thomas.jarosch@...ra2net.com>
---
drivers/staging/unisys/uislib/uisutils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/unisys/uislib/uisutils.c b/drivers/staging/unisys/uislib/uisutils.c
index 8ff6d26..d821c82 100644
--- a/drivers/staging/unisys/uislib/uisutils.c
+++ b/drivers/staging/unisys/uislib/uisutils.c
@@ -59,6 +59,7 @@ uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining,
DBGINF("buffer = 0x%p : *buffer = 0x%p.\n", buffer, *buffer);
va_start(args, format);
len = vsnprintf(*buffer, *buffer_remaining, format, args);
+ va_end(args);
if (len >= *buffer_remaining) {
*buffer += *buffer_remaining;
*total += *buffer_remaining;
--
1.9.3
--
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