mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
bcachefs: Fix sb_clean_validate endianness conversion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6e297a73bc
commit
5ad1f33c29
@ -283,7 +283,7 @@ static int bch2_sb_clean_validate(struct bch_sb *sb,
|
||||
entry = vstruct_next(entry)) {
|
||||
if ((void *) vstruct_next(entry) > vstruct_end(&clean->field)) {
|
||||
prt_str(err, "entry type ");
|
||||
bch2_prt_jset_entry_type(err, le16_to_cpu(entry->type));
|
||||
bch2_prt_jset_entry_type(err, entry->type);
|
||||
prt_str(err, " overruns end of section");
|
||||
return -BCH_ERR_invalid_sb_clean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user