diff options
author | Giovanni Cabiddu <giovanni.cabiddu@intel.com> | 2022-05-09 16:34:13 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-05-20 08:49:18 +0300 |
commit | 029aa4624a7fe35233bdd3d1354dc7be260380bf (patch) | |
tree | 089a9800700aca8873324d9dbf454527653f4ea5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3dfaf0071ed74d7a9c6b3c9ea4df7a6f8e423c2a (diff) | |
download | linux-029aa4624a7fe35233bdd3d1354dc7be260380bf.tar.xz |
crypto: qat - remove dma_free_coherent() for DH
The functions qat_dh_compute_value() allocates memory with
dma_alloc_coherent() if the source or the destination buffers are made
of multiple flat buffers or of a size that is not compatible with the
hardware.
This memory is then freed with dma_free_coherent() in the context of a
tasklet invoked to handle the response for the corresponding request.
According to Documentation/core-api/dma-api-howto.rst, the function
dma_free_coherent() cannot be called in an interrupt context.
Replace allocations with dma_alloc_coherent() in the function
qat_dh_compute_value() with kmalloc() + dma_map_single().
Cc: stable@vger.kernel.org
Fixes: c9839143ebbf ("crypto: qat - Add DH support")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Adam Guerin <adam.guerin@intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions