]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/net: Add missing va_end.
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Fri, 27 Sep 2024 04:00:50 +0000 (12:00 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Oct 2024 08:43:05 +0000 (10:43 +0200)
There is no va_end after va_copy, just add it.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240927040050.7851-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/tcp_ao/lib/aolib.h

index db44e77428dd3ad59e5a8426da9eb84ff89f4edd..5db2f65cddc4e7f0186caf538e512416ddaf7286 100644 (file)
@@ -46,6 +46,7 @@ static inline char *test_snprintf(const char *fmt, va_list vargs)
 
        va_copy(tmp, vargs);
        n = vsnprintf(ret, size, fmt, tmp);
+       va_end(tmp);
        if (n < 0)
                return NULL;