Commit a91af508 authored by Hui Tang's avatar Hui Tang Committed by Greg Kroah-Hartman
Browse files

crypto: qat - fix use of 'dma_map_single'



[ Upstream commit 7cc05071 ]

DMA_TO_DEVICE synchronisation must be done after the last modification
of the memory region by the software and before it is handed off to
the device.

Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: cf5bb835 ("crypto: qat - fix DMA transfer direction")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8a4ed09e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment