aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorRussell King <[email protected]>2016-08-08 18:05:03 +0100
committerHerbert Xu <[email protected]>2016-08-09 18:47:26 +0800
commitbc13c69e29697f90200cf77d133a39ca1e525590 (patch)
tree6c4203cb9a932d949d81ccb0971953ebfd2c38eb /tools/perf/scripts/python/sched-migration.py
parent32686d34f8fb6919df491ddb7ad8a0d6a9164624 (diff)
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions