]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: qat - fix use of 'dma_map_single'
authorHui Tang <tanghui20@huawei.com>
Fri, 5 Mar 2021 06:35:02 +0000 (14:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:05 +0000 (00:04 +1100)
commit7cc05071f930a631040fea16a41f9d78771edc49
treebb154922159d68832675c770b07cc7adee83acd0
parent792b32fad548281e1b7fe14df9063a96c54b32a2
crypto: qat - fix use of 'dma_map_single'

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: Hui Tang <tanghui20@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c