mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
selftests/net: Add missing va_end.
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>
This commit is contained in:
parent
6b67e098c9
commit
7c2f1c2690
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user