Skip to content
Commit fc097cfc authored by Akilesh Kailash's avatar Akilesh Kailash Committed by Greg Kroah-Hartman
Browse files

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: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Stable-dep-of: e8c5d45f ("dm verity: fix error handling for check_at_most_once on FEC")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 26b1b0d0
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