Skip to content

Commit 806776a

Browse files
alanskindKent Overstreet
authored andcommitted
bcachefs: Add missing error handling
Reported-by: [email protected] Signed-off-by: Alan Huang <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent d62922b commit 806776a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/bcachefs/recovery.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,10 @@ int bch2_fs_initialize(struct bch_fs *c)
11251125
* journal_res_get() will crash if called before this has
11261126
* set up the journal.pin FIFO and journal.cur pointer:
11271127
*/
1128-
bch2_fs_journal_start(&c->journal, 1);
1128+
ret = bch2_fs_journal_start(&c->journal, 1);
1129+
if (ret)
1130+
goto err;
1131+
11291132
set_bit(BCH_FS_accounting_replay_done, &c->flags);
11301133
bch2_journal_set_replay_done(&c->journal);
11311134

0 commit comments

Comments
 (0)