diff options
author | Peter Harliman Liem <pliem@maxlinear.com> | 2022-09-13 16:03:47 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-09-24 16:14:42 +0800 |
commit | 49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1 (patch) | |
tree | b52b060e162e47a32c507096385def1cd60437b1 /drivers/crypto/ccree/cc_crypto_ctx.h | |
parent | 072d36eefd6fde17928d214df64fdac32f60b4f4 (diff) | |
download | linux-49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1.tar.gz |
crypto: inside_secure - Avoid dma map if size is zero
From commit d03c54419274 ("dma-mapping: disallow .map_sg
operations from returning zero on error"), dma_map_sg()
produces warning if size is 0. This results in visible
warnings if crypto length is zero.
To avoid that, we avoid calling dma_map_sg if size is zero.
Signed-off-by: Peter Harliman Liem <pliem@maxlinear.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_crypto_ctx.h')
0 files changed, 0 insertions, 0 deletions