]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mxs-dcp - Check for DMA mapping errors
authorSean Anderson <sean.anderson@seco.com>
Thu, 1 Jul 2021 18:56:37 +0000 (14:56 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jul 2021 07:49:32 +0000 (15:49 +0800)
commit6f7d6a9868219e858149679bf1f8ef0614896c6e
tree43f25e7edd650024b3fec1daf8cec5e798e909a5
parent3d2e60c05fa8b2e2d72d0c86ca0b4c0c48be5f66
crypto: mxs-dcp - Check for DMA mapping errors

After calling dma_map_single(), we must also call dma_mapping_error().
This fixes the following warning when compiling with CONFIG_DMA_API_DEBUG:

[  311.241478] WARNING: CPU: 0 PID: 428 at kernel/dma/debug.c:1027 check_unmap+0x79c/0x96c
[  311.249547] DMA-API: mxs-dcp 2280000.crypto: device driver failed to check map error[device address=0x00000000860cb080] [size=32 bytes] [mapped as single]

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mxs-dcp.c