Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/crypto/caam/caamalg.c
··· 2624 2624 2625 2625 sec4_sg_index = 0; 2626 2626 if (!all_contig) { 2627 - sg_to_sec4_sg(req->src, src_nents, 2627 + sg_to_sec4_sg_last(req->src, src_nents, 2628 2628 edesc->sec4_sg + sec4_sg_index, 0); 2629 2629 sec4_sg_index += src_nents; 2630 2630 }