diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2017-10-06 15:04:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-14 09:28:15 +0100 |
commit | 24ab6e7f6b6199964331eda3928a3dafdd20adbe (patch) | |
tree | f359ccb96bb038129cd9b053750763d4a59b02ac /drivers | |
parent | 6bf30e664221488800acc9b9cbe7b0059865f02d (diff) | |
download | linux-stable-24ab6e7f6b6199964331eda3928a3dafdd20adbe.tar.gz linux-stable-24ab6e7f6b6199964331eda3928a3dafdd20adbe.tar.bz2 linux-stable-24ab6e7f6b6199964331eda3928a3dafdd20adbe.zip |
crypto: talitos - fix use of sg_link_tbl_len
commit fbb22137c4d9bab536958b152d096fb3f98020ea upstream.
sg_link_tbl_len shall be used instead of cryptlen, otherwise
SECs which perform HW CICV verification will fail.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/talitos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 70036f02f4d1..1ae09c2a8430 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1232,8 +1232,8 @@ static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq, sg_link_tbl_len += authsize; } - ret = talitos_sg_map(dev, areq->src, cryptlen, edesc, &desc->ptr[4], - sg_count, areq->assoclen, tbl_off); + ret = talitos_sg_map(dev, areq->src, sg_link_tbl_len, edesc, + &desc->ptr[4], sg_count, areq->assoclen, tbl_off); if (ret > 1) { tbl_off += ret; |