aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLv Yunlong <[email protected]>2021-04-02 10:13:48 -0700
committerHerbert Xu <[email protected]>2021-04-09 17:45:14 +1000
commitf7cae626cabb3350b23722b78fe34dd7a615ca04 (patch)
treee832422d2ce9fd19302d0b0c617323d9116e5a70 /tools/perf/scripts/python/export-to-postgresql.py
parent556b64b9f39e678e64bd69fa180098e5174f3104 (diff)
crypto: qat - Fix a double free in adf_create_ring
In adf_create_ring, if the callee adf_init_ring() failed, the callee will free the ring->base_addr by dma_free_coherent() and return -EFAULT. Then adf_create_ring will goto err and the ring->base_addr will be freed again in adf_cleanup_ring(). My patch sets ring->base_addr to NULL after the first freed to avoid the double free. Fixes: a672a9dc872ec ("crypto: qat - Intel(R) QAT transport code") Signed-off-by: Lv Yunlong <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions