diff options
author | 2021-07-01 14:56:37 -0400 | |
---|---|---|
committer | 2021-07-16 15:49:32 +0800 | |
commit | df6313d707e575a679ada3313358289af24454c0 (patch) | |
tree | 43f25e7edd650024b3fec1daf8cec5e798e909a5 /lib/crypto | |
parent | crypto: drbg - select SHA512 (diff) | |
download | linux-dev-df6313d707e575a679ada3313358289af24454c0.tar.xz linux-dev-df6313d707e575a679ada3313358289af24454c0.zip |
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>
Diffstat (limited to 'lib/crypto')
0 files changed, 0 insertions, 0 deletions