diff options
| author | Nikita Zhandarovich <[email protected]> | 2023-12-01 04:49:29 -0800 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2023-12-08 11:59:44 +0800 |
| commit | 87e02063d07708cac5bfe9fd3a6a242898758ac8 (patch) | |
| tree | 4618db44a012a02fde85516a1b3da472544e3859 /tools/perf/scripts/python | |
| parent | 429fec81d12266e6402868672de8c68bf4d8db13 (diff) | |
crypto: safexcel - Add error handling for dma_map_sg() calls
Macro dma_map_sg() may return 0 on error. This patch enables
checks in case of the macro failure and ensures unmapping of
previously mapped buffers with dma_unmap_sg().
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: 49186a7d9e46 ("crypto: inside_secure - Avoid dma map if size is zero")
Signed-off-by: Nikita Zhandarovich <[email protected]>
Reviewed-by: Antoine Tenart <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions