aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-13 20:26:09 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-02-13 21:59:27 -0500
commit816054f40a5fdaaed05d9e7f603d2824eeee7e62 (patch)
tree0d0d3ae3654a5581efd178817769c1bc77b0683c
parent2eeccee86dc75a584a8c7e67a8b824d5168c978f (diff)
downloadlinux-816054f40a5fdaaed05d9e7f603d2824eeee7e62.tar.gz
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>
-rw-r--r--fs/bcachefs/printbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/printbuf.c b/fs/bcachefs/printbuf.c
index accf246c323309..b27d22925929a6 100644
--- a/fs/bcachefs/printbuf.c
+++ b/fs/bcachefs/printbuf.c
@@ -56,6 +56,7 @@ void bch2_prt_vprintf(struct printbuf *out, const char *fmt, va_list args)
va_copy(args2, args);
len = vsnprintf(out->buf + out->pos, printbuf_remaining(out), fmt, args2);
+ va_end(args2);
} while (len + 1 >= printbuf_remaining(out) &&
!bch2_printbuf_make_room(out, len + 1));