From: Kent Overstreet Date: Fri, 5 Jul 2024 01:18:06 +0000 (-0400) Subject: bcachefs: Fix missing error check in journal_entry_btree_keys_validate() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0f6f8f76936b22e9a466ca6bd49aa0261f698276;p=users%2Fwilly%2Fxarray.git bcachefs: Fix missing error check in journal_entry_btree_keys_validate() Closes: https://syzkaller.appspot.com/bug?extid=8996d8f176cf946ef641 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index f17c478a18e8..2326e2cb9cd2 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -415,6 +415,8 @@ static int journal_entry_btree_keys_validate(struct bch_fs *c, flags|BCH_VALIDATE_journal); if (ret == FSCK_DELETED_KEY) continue; + else if (ret) + return ret; k = bkey_next(k); }