Fix masking of EIO in compact_logs.

Several of the inconsistency error paths already correctly `goto out`
but this one has a `break`. This would result in doing a whole lot of
work on corrupted data.

Make this error path go to `out` instead as the others do.

Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
Auke Kok
2025-07-21 18:26:40 -04:00
parent 8c5b09aee8
commit e704cd7074

View File

@@ -1865,7 +1865,7 @@ static int compact_logs(struct super_block *sb,
if (pos > SCOUTFS_SRCH_BLOCK_SAFE_BYTES) {
/* can only be inconsistency :/ */
ret = -EIO;
break;
goto out;
}
ret = decode_entry(srb->entries + pos, sre, &prev);