crypto: caam: use dma_alloc_coherent instead of dma_alloc
dma_alloc return non-coherent memory, but the driver does no cache
maintenance on the buffer, causing memory corruption. Fix this by
requesting coherent memory for the DMA transfer.

Fixes: ef4144b4ab63 (crypto: caam - fix RNG buffer cache alignment)
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
1 parent ab90948 commit 21dfbbe8b187ea6a94f675f4b28e6f7106fd8c02
@Oleksij Rempel Oleksij Rempel authored on 12 Jul 2017
Lucas Stach committed on 14 Jul 2017
Showing 1 changed file
View
drivers/crypto/caam/caamrng.c