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

Configure Feed

Select the types of activity you want to include in your feed.

crypto: marvell/cesa - Avoid empty transfer descriptor

The user may set req->src even if req->nbytes == 0. If there
is no data to hash from req->src, do not generate an empty TDMA
descriptor.

Fixes: db509a45339f ("crypto: marvell/cesa - add TDMA support")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+1 -1
+1 -1
drivers/crypto/marvell/cesa/hash.c
··· 663 663 if (ret) 664 664 goto err_free_tdma; 665 665 666 - if (iter.src.sg) { 666 + if (iter.base.len > iter.src.op_offset) { 667 667 /* 668 668 * Add all the new data, inserting an operation block and 669 669 * launch command between each full SRAM block-worth of