Skip to content

Commit 816054f

Browse files
author
Kent Overstreet
committed
bcachefs: 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>
1 parent 2eeccee commit 816054f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/printbuf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void bch2_prt_vprintf(struct printbuf *out, const char *fmt, va_list args)
5656

5757
va_copy(args2, args);
5858
len = vsnprintf(out->buf + out->pos, printbuf_remaining(out), fmt, args2);
59+
va_end(args2);
5960
} while (len + 1 >= printbuf_remaining(out) &&
6061
!bch2_printbuf_make_room(out, len + 1));
6162

0 commit comments

Comments
 (0)