mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:11:14 -04:00
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>
This commit is contained in:
parent
87e51b0724
commit
7793bda8fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue