Commit d651d7f1 authored by Hui Tang's avatar Hui Tang Committed by Jialin Zhang
Browse files

crypto: qat - fix use of 'dma_map_single'

stable inclusion
from stable-v5.10.150
commit a91af50850270554a4ff032a12eaa4c2fed0dd44
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a91af50850270554a4ff032a12eaa4c2fed0dd44



--------------------------------

[ 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>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 63ce127f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment