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 c79da7b commit 06c1f19cb3bc38d3d725bb0b2acabfd55e6e5882
@Oleksij Rempel Oleksij Rempel authored on 12 Jul 2017
Lucas Stach committed on 12 Jul 2017
Showing 1 changed file
View
drivers/crypto/caam/caamrng.c