crypto: qat - fix unmap invalid dma address
authorHui Tang <tanghui20@huawei.com>
Fri, 5 Mar 2021 06:35:01 +0000 (14:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:05 +0000 (00:04 +1100)
commit792b32fad548281e1b7fe14df9063a96c54b32a2
tree2389ff35816bea5de9dd95ec57edacc866b459ed
parent282894556b8349d3c095eedadc4dde9495d48445
crypto: qat - fix unmap invalid dma address

'dma_mapping_error' return a negative value if 'dma_addr' is equal to
'DMA_MAPPING_ERROR' not zero, so fix initialization of 'dma_addr'.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c