diff options
author | Ben Hutchings <ben.hutchings@mind.be> | 2021-08-11 02:05:55 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-08-21 15:44:53 +0800 |
commit | ffe3ee8bb68aa6c49832c6c101ab0bb1cb635624 (patch) | |
tree | dafc9c944300d1b373f6c410806f2e690e55426f /lib/mpi/mpi-sub-ui.c | |
parent | 9491923e4a68d696f7d0817a02829ed238783716 (diff) |
crypto: omap - Avoid redundant copy when using truncated sg list
omap_crypto_cleanup() currently copies data from sg to orig if either
copy flag is set. However OMAP_CRYPTO_SG_COPIED means that sg refers
to the same pages as orig, truncated to len bytes. There is no need
to copy in this case.
Only copy data if the OMAP_CRYPTO_DATA_COPIED flag is set.
Fixes: 74ed87e7e7f7 ("crypto: omap - add base support library for common ...")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions