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:
Andrey Markovytch 2016-07-07 09:12:59 +03:00 committed by syphyr
parent 1fdc33cb78
commit 38909f7d3b
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}