mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
bcachefs: Fix leakage of internal error code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
01db5e5f2f
commit
c8296d730f
@ -408,8 +408,10 @@ static int journal_entry_btree_root_validate(struct bch_fs *c,
|
||||
return 0;
|
||||
}
|
||||
|
||||
return journal_validate_key(c, jset, entry, 1, entry->btree_id, k,
|
||||
version, big_endian, flags);
|
||||
ret = journal_validate_key(c, jset, entry, 1, entry->btree_id, k,
|
||||
version, big_endian, flags);
|
||||
if (ret == FSCK_DELETED_KEY)
|
||||
ret = 0;
|
||||
fsck_err:
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user