From: Rickard Strandqvist Date: Sat, 27 Dec 2014 22:04:14 +0000 (+0100) Subject: staging: unisys: uislib: uisutils.c: Fix a missing va_end X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=66875c5d6495da7af0116d39bf7e8fbc257f3b01;p=openwrt%2Fstaging%2Fblogic.git staging: unisys: uislib: uisutils.c: Fix a missing va_end A missing va_end in connection with vsnprintf Was found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/uislib/uisutils.c b/drivers/staging/unisys/uislib/uisutils.c index d9f527dfb4b8..31318d246252 100644 --- a/drivers/staging/unisys/uislib/uisutils.c +++ b/drivers/staging/unisys/uislib/uisutils.c @@ -56,6 +56,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;