verity_fec.c (cryptsetup-2.3.6.tar.xz) | : | verity_fec.c (cryptsetup-2.4.0.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 181 | skipping to change at line 181 | |||
if (read_buffer(fd, &rs_block[ctx.rsn], ctx.roots ) < 0) { | if (read_buffer(fd, &rs_block[ctx.rsn], ctx.roots ) < 0) { | |||
log_err(cd, _("Failed to read parity for RS block %" PRIu64 "."), n); | log_err(cd, _("Failed to read parity for RS block %" PRIu64 "."), n); | |||
r = -EIO; | r = -EIO; | |||
goto out; | goto out; | |||
} | } | |||
/* coverity[tainted_data] */ | /* coverity[tainted_data] */ | |||
r = decode_rs_char(rs, rs_block); | r = decode_rs_char(rs, rs_block); | |||
if (r < 0) { | if (r < 0) { | |||
log_err(cd, _("Failed to repair parity fo r block %" PRIu64 "."), n); | log_err(cd, _("Failed to repair parity fo r block %" PRIu64 "."), n); | |||
r = -EPERM; | ||||
goto out; | goto out; | |||
} | } | |||
/* return number of detected errors */ | /* return number of detected errors */ | |||
if (errors) | if (errors) | |||
*errors += r; | *errors += r; | |||
r = 0; | r = 0; | |||
} else { | } else { | |||
/* encoding and writing parity data to fec device */ | /* encoding and writing parity data to fec device */ | |||
encode_rs_char(rs, rs_block, &rs_block[ctx.rsn]); | encode_rs_char(rs, rs_block, &rs_block[ctx.rsn]); | |||
if (write_buffer(fd, &rs_block[ctx.rsn], ctx.root s) < 0) { | if (write_buffer(fd, &rs_block[ctx.rsn], ctx.root s) < 0) { | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |