summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-21 19:34:48 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-04-17 15:44:28 -0400
commitfc91fb4889d7302b2216da3867a0afa2962759a1 (patch)
tree5a4eeacee81b4bda89bade4d5735cd5aae16a628
parent1412bef7de6bd7675205fdfc303bbf4352ce91e2 (diff)
bcachefs: Fix an unitialized var warning in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--fs/bcachefs/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index cf97594b7c6f..36929451af2c 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/io.c
@@ -1059,7 +1059,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;