Commit 8bfc0152 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Shashank Mittal
Browse files

dm-crypt: add missing error handling



There were cases where error code would be used only if we finish
processing the last sector. If there were other encryption operations
in flight, error would be ignored and bio would be returned with
success as if no error happened.

This bug is present in kcryptd_crypt_write_convert,
kcryptd_crypt_read_convert and kcryptd_async_done.

This patch fixes it, setting io->error to -EIO always when an
error happens.

Change-Id: I4aa7cbebcccff85bdbf9ad9bb70f6f52fc104afe
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent 71b41c32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment