]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qce/sha - Do not modify scatterlist passed along with request
authorSivaprakash Murugesan <sivaprak@codeaurora.org>
Mon, 22 Jun 2020 06:15:06 +0000 (11:45 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Jul 2020 04:18:34 +0000 (14:18 +1000)
commit4da2a737666159c5b646a30692b9729faf615e3b
tree94d22c7abf8e4f8241ea279679ee2b119850a799
parentb6659c13053558ac112a166cc9127e0e9ac19b46
crypto: qce/sha - Do not modify scatterlist passed along with request

Crypto test driver's test_ahash_speed calls crypto_ahash_update and
crypto_ahash_final APIs repeatedly for all the available test vector
buffer lengths.

if we mark the end for scatterlist based on the current vector size then
the subsequent vectors might fail if the later buffer lengths are higher.

To avoid this, in qce do not mark the end of scatterlist in update API,
the qce_ahash_async_req_handle API already takes care of this copying
right amount of buffer from the request scatter list.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/sha.c