Skip to content

Commit 0f6f8f7

Browse files
author
Kent Overstreet
committed
bcachefs: Fix missing error check in journal_entry_btree_keys_validate()
Closes: https://syzkaller.appspot.com/bug?extid=8996d8f176cf946ef641 Signed-off-by: Kent Overstreet <[email protected]>
1 parent f49d2c9 commit 0f6f8f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/journal_io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ static int journal_entry_btree_keys_validate(struct bch_fs *c,
415415
flags|BCH_VALIDATE_journal);
416416
if (ret == FSCK_DELETED_KEY)
417417
continue;
418+
else if (ret)
419+
return ret;
418420

419421
k = bkey_next(k);
420422
}

0 commit comments

Comments
 (0)