mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
bcachefs: thread_with_file: Fix missing va_end()
Fixes: https://lore.kernel.org/linux-bcachefs/202402131603.E953E2CF@keescook/T/#u Reported-by: coverity scan Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
658a1e42ce
commit
6b33312925
@ -384,6 +384,8 @@ static ssize_t bch2_darray_vprintf(darray_char *out, gfp_t gfp, const char *fmt,
|
||||
|
||||
va_copy(args2, args);
|
||||
len = vsnprintf(out->data + out->nr, darray_room(*out), fmt, args2);
|
||||
va_end(args2);
|
||||
|
||||
if (len + 1 <= darray_room(*out)) {
|
||||
out->nr += len;
|
||||
return len;
|
||||
|
Loading…
Reference in New Issue
Block a user