summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/rockchip
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-08-08 18:05:03 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-08-09 18:47:26 +0800
commitbc13c69e29697f90200cf77d133a39ca1e525590 (patch)
tree6c4203cb9a932d949d81ccb0971953ebfd2c38eb /drivers/crypto/rockchip
parent32686d34f8fb6919df491ddb7ad8a0d6a9164624 (diff)
downloadlinux-bc13c69e29697f90200cf77d133a39ca1e525590.tar.bz2
crypto: caam - check and use dma_map_sg() return code
Strictly, dma_map_sg() may coalesce SG entries, but in practise on iMX hardware, this will never happen. However, dma_map_sg() can fail, and we completely fail to check its return value. So, fix this properly. Arrange the code to map the scatterlist early, so we know how many scatter table entries to allocate, and then fill them in. This allows us to keep relatively simple error cleanup paths. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/rockchip')
0 files changed, 0 insertions, 0 deletions