OSDN Git Service

crypto: inside-secure - do not access buffers mapped to the device
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 19 Mar 2018 08:21:17 +0000 (09:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Mar 2018 17:32:45 +0000 (01:32 +0800)
commitb89a815975e5dd3ffa4b4f6392eceff66c48476e
treecdcbad086a29406d2125156f447f0b4dbef2c946
parent57433b582090ce0d751009e931f15a653e22ee85
crypto: inside-secure - do not access buffers mapped to the device

This patches update the way the digest is copied from the state buffer
to the result buffer, so that the copy only happen after the state
buffer was DMA unmapped, as otherwise the buffer would be owned by the
device.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c