mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
029aa4624a
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:
|
||
---|---|---|
.. | ||
qat_4xxx | ||
qat_c3xxx | ||
qat_c3xxxvf | ||
qat_c62x | ||
qat_c62xvf | ||
qat_common | ||
qat_dh895xcc | ||
qat_dh895xccvf | ||
Kconfig | ||
Makefile |