dm verity: skip redundant verity_handle_err() on I/O errors
[ Upstream commit 2c0468e0 ] Without FEC, dm-verity won't call verity_handle_err() when I/O fails, but with FEC enabled, it currently does even if an I/O error has occurred. If there is an I/O error and FEC correction fails, return the error instead of calling verity_handle_err() again. Suggested-by:Sami Tolvanen <samitolvanen@google.com> Signed-off-by:
Akilesh Kailash <akailash@google.com> Reviewed-by:
Sami Tolvanen <samitolvanen@google.com> Signed-off-by:
Mike Snitzer <snitzer@redhat.com> Stable-dep-of: e8c5d45f ("dm verity: fix error handling for check_at_most_once on FEC") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment