diff options
| author | Christoph Manszewski <[email protected]> | 2018-09-17 17:09:27 +0200 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2018-09-28 12:46:06 +0800 |
| commit | 5842cd44786055231b233ed5ed98cdb63ffb7db3 (patch) | |
| tree | 31ad573373a4d3ccbc08f353988a9e2a595a1172 /tools/perf/scripts/python | |
| parent | cd560235d8f9ddd94aa51e1c4dabdf3212b9b241 (diff) | |
crypto: s5p-sss: Fix race in error handling
Remove a race condition introduced by error path in functions:
s5p_aes_interrupt and s5p_aes_crypt_start. Setting the busy field of
struct s5p_aes_dev to false made it possible for s5p_tasklet_cb to
change the req field, before s5p_aes_complete was called.
Change the first parameter of s5p_aes_complete to struct
ablkcipher_request. Before spin_unlock, make a copy of the currently
handled request, to ensure s5p_aes_complete function call with the
correct request.
Signed-off-by: Christoph Manszewski <[email protected]>
Acked-by: Kamil Konieczny <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions