]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - fix the check on dma address
authorHui Tang <tanghui20@huawei.com>
Fri, 19 Mar 2021 10:45:05 +0000 (18:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:15:57 +0000 (20:15 +1100)
commit5ae1a645822204401656c24e3ce8a7ef09a0fd8b
treee91577fde9558cce5aa3e76b640e396f277a2059
parentaebe7e820d9352874978365204c00c329cc29def
crypto: hisilicon - fix the check on dma address

System may be able to get physical address of zero if not reserved by
firmware.

The dma address obtained by 'dma_alloc_coherent' is valid, since already
checking cpu va before, so do not check again.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/sec2/sec_crypto.c