diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-18 14:25:56 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-19 14:16:32 +0800 |
commit | 7793bda8fe372fe2e71f16d0619b630d6e41c8ba (patch) | |
tree | e38aa7b6174a8751c4f23541ed10ec7c0604fe0a /drivers/crypto/caam | |
parent | 87e51b072485f519c6ef077f60f4b837677202cc (diff) | |
download | op-kernel-dev-7793bda8fe372fe2e71f16d0619b630d6e41c8ba.zip op-kernel-dev-7793bda8fe372fe2e71f16d0619b630d6e41c8ba.tar.gz |
crypto: caam - Set last bit on src SG list
The new aead_edesc_alloc left out the bit indicating the last
entry on the source SG list. This patch fixes it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 789c385..daca933 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c @@ -2624,7 +2624,7 @@ static struct aead_edesc *aead_edesc_alloc(struct aead_request *req, sec4_sg_index = 0; if (!all_contig) { - sg_to_sec4_sg(req->src, src_nents, + sg_to_sec4_sg_last(req->src, src_nents, edesc->sec4_sg + sec4_sg_index, 0); sec4_sg_index += src_nents; } |