From fd1e9c69959ec2dd0946f3d2285548c87f9d6ea3 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 21 Mar 2022 19:34:48 -0400 Subject: [PATCH] bcachefs: Fix an unitialized var warning in userspace Signed-off-by: Kent Overstreet --- fs/bcachefs/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index c9204cab055da..2cc56979fcb35 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -1141,7 +1141,7 @@ static void __bch2_write(struct closure *cl) struct bch_write_op *op = container_of(cl, struct bch_write_op, cl); struct bch_fs *c = op->c; struct write_point *wp; - struct bio *bio; + struct bio *bio = NULL; bool skip_put = true; unsigned nofs_flags; int ret; -- 2.30.2