Message ID | aB8t1ZTVBexqGlcm@gondor.apana.org.au |
---|---|
State | New |
Headers | show |
Series | crypto: marvell/cesa - Avoid empty transfer descriptor | expand |
diff --git a/drivers/crypto/marvell/cesa/hash.c b/drivers/crypto/marvell/cesa/hash.c index a46ae868110a..2200bc6a034f 100644 --- a/drivers/crypto/marvell/cesa/hash.c +++ b/drivers/crypto/marvell/cesa/hash.c @@ -650,7 +650,7 @@ static int mv_cesa_ahash_dma_req_init(struct ahash_request *req) if (ret) goto err_free_tdma; - if (iter.src.sg) { + if (iter.base.len > iter.src.op_offset) { /* * Add all the new data, inserting an operation block and * launch command between each full SRAM block-worth of