summaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys/mscode.asn1
diff options
context:
space:
mode:
authorAntoine Ténart2017-12-26 17:21:16 +0100
committerHerbert Xu2018-01-05 08:43:05 +0100
commitc957f8b3e2e54b29f53ef69decc87bbc858c9b58 (patch)
treedd21c039ce87dad8711b670fe456b27dd7daa224 /crypto/asymmetric_keys/mscode.asn1
parentcrypto: crypto4xx - perform aead icv check in the driver (diff)
downloadkernel-qcow2-linux-c957f8b3e2e54b29f53ef69decc87bbc858c9b58.tar.gz
kernel-qcow2-linux-c957f8b3e2e54b29f53ef69decc87bbc858c9b58.tar.xz
kernel-qcow2-linux-c957f8b3e2e54b29f53ef69decc87bbc858c9b58.zip
crypto: inside-secure - avoid unmapping DMA memory that was not mapped
This patch adds a parameter in the SafeXcel ahash request structure to keep track of the number of SG entries mapped. This allows not to call dma_unmap_sg() when dma_map_sg() wasn't called in the first place. This also removes a warning when the debugging of the DMA-API is enabled in the kernel configuration: "DMA-API: device driver tries to free DMA memory it has not allocated". Cc: stable@vger.kernel.org Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver") Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/mscode.asn1')
0 files changed, 0 insertions, 0 deletions