linux_dsm_epyc7002/drivers/crypto/inside-secure
Antoine Ténart c957f8b3e2 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: 1b44c5a60c ("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>
2018-01-05 18:43:05 +11:00
..
Makefile crypto: inside-secure - add SafeXcel EIP197 crypto engine driver 2017-06-10 12:04:21 +08:00
safexcel_cipher.c crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00
safexcel_hash.c crypto: inside-secure - avoid unmapping DMA memory that was not mapped 2018-01-05 18:43:05 +11:00
safexcel_ring.c crypto: inside-secure - use the base_end pointer in ring rollback 2017-06-20 11:21:48 +08:00
safexcel.c crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00
safexcel.h crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00