md: dm-req-crypt: fixed error propagation when ICE is used
When ICE is used errors during endio are not propagated properly to upper layers. Fixed. Change-Id: I5c428e4a02f7012f95e3a32486920e69b93ea3fc Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
This commit is contained in:
parent
1fdc33cb78
commit
38909f7d3b
|
@ -974,6 +974,7 @@ static int req_crypt_endio(struct dm_target *ti, struct request *clone,
|
|||
bvec = NULL;
|
||||
if (encryption_mode == DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT) {
|
||||
mempool_free(req_io, req_io_pool);
|
||||
err = error;
|
||||
goto submit_request;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue