diff options
author | Andrey Markovytch <andreym@codeaurora.org> | 2016-06-29 12:27:24 +0300 |
---|---|---|
committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-30 15:11:03 -0700 |
commit | 18c50da9dcb44dcfec4cdb9ace68352a8923f518 (patch) | |
tree | 273bd76c950c70599900387e47b29281bf61ca28 /drivers | |
parent | 1d0f3783d5593423047f94e77a2ed9696e7d1acb (diff) |
md: dm-req-crypt: fixed error propagation when ICE is used
When ICE is used and there was an error during endio, the error was
not propagated properly to upper layers, fixed.
Change-Id: I5c428e4a02f7012f95e3a32486920e69b93ea3fc
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-req-crypt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-req-crypt.c b/drivers/md/dm-req-crypt.c index dd3e9d97c75b..b2769a2a3c22 100644 --- a/drivers/md/dm-req-crypt.c +++ b/drivers/md/dm-req-crypt.c @@ -873,6 +873,7 @@ static int req_crypt_endio(struct dm_target *ti, struct request *clone, /* If it is for ICE, free up req_io and return */ if (encryption_mode == DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT) { mempool_free(req_io, req_io_pool); + err = error; goto submit_request; } |