]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Fix an unitialized var warning in userspace
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 21 Mar 2022 23:34:48 +0000 (19:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:28 +0000 (17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/io.c

index c9204cab055dace2a2e014ca4839dde8d9f921f1..2cc56979fcb353648799a9fc6d2c54fd00d28e3a 100644 (file)
@@ -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;