Commit 5ad1f33c authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix sb_clean_validate endianness conversion

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6e297a73
...@@ -283,7 +283,7 @@ static int bch2_sb_clean_validate(struct bch_sb *sb, ...@@ -283,7 +283,7 @@ static int bch2_sb_clean_validate(struct bch_sb *sb,
entry = vstruct_next(entry)) { entry = vstruct_next(entry)) {
if ((void *) vstruct_next(entry) > vstruct_end(&clean->field)) { if ((void *) vstruct_next(entry) > vstruct_end(&clean->field)) {
prt_str(err, "entry type "); 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"); prt_str(err, " overruns end of section");
return -BCH_ERR_invalid_sb_clean; return -BCH_ERR_invalid_sb_clean;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment