summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2021-07-01 14:56:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 11:47:48 +0200
commit463cca05f6ca46813f40585e63e7ac9b304ed15a (patch)
treee780121fb26a8afd70914955ca565e795a9f12e8 /kernel
parent02c0d85cd4d5628d122be60fb62a97ca917ed108 (diff)
crypto: mxs-dcp - Check for DMA mapping errors
[ Upstream commit df6313d707e575a679ada3313358289af24454c0 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions