diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-05 04:18:06 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-10 16:53:39 +0300 |
commit | 0f6f8f76936b22e9a466ca6bd49aa0261f698276 (patch) | |
tree | d563da4d39aaf33b8908fd75cb4c1862f2d1f200 | |
parent | f49d2c9835f95fa078ea8a8eba6de9cbddb9eb33 (diff) | |
download | linux-0f6f8f76936b22e9a466ca6bd49aa0261f698276.tar.xz |
bcachefs: Fix missing error check in journal_entry_btree_keys_validate()
Closes: https://syzkaller.appspot.com/bug?extid=8996d8f176cf946ef641
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/journal_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |