summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-03-11 16:56:49 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2026-03-22 11:17:59 +0900
commit344e6a4f7ff4756b9b3f75e0eb7eaec297e35540 (patch)
tree476d3f86bd3a9c9a11783ba56051308490a02238 /tools/perf/scripts/python
parentadb3faf2db1a66d0f015b44ac909a32dfc7f2f9c (diff)
crypto: nx - fix context leak in nx842_crypto_free_ctx
Since the scomp conversion, nx842_crypto_alloc_ctx() allocates the context separately, but nx842_crypto_free_ctx() never releases it. Add the missing kfree(ctx) to nx842_crypto_free_ctx(), and reuse nx842_crypto_free_ctx() in the allocation error path. Fixes: 980b5705f4e7 ("crypto: nx - Migrate to scomp API") Cc: stable@vger.kernel.org Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions