diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-03-28 18:41:22 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 18:41:22 +0100 |
commit | 72c6e7afc43e19f68a31dea204fc366624d6eee9 (patch) | |
tree | 888dfad9bcbcff78cf707e63b3c4389b589b8c4d /drivers/md/dm-linear.c | |
parent | aeb2deae2660a1773c83d3c6e9e6575daa3855d6 (diff) |
dm crypt: add missing error handling
Always set io->error to -EIO when an error is detected in dm-crypt.
There were cases where an error code would be set only if we finish
processing the last sector. If there were other encryption operations in
flight, the 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.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@kernel.org
Reviewed-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-linear.c')
0 files changed, 0 insertions, 0 deletions