From: Herbert Xu Date: Sun, 16 Mar 2025 09:50:22 +0000 (+0800) Subject: crypto: scompress - Fix incorrect stream freeing X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5a06ef1f8da226b2de587e22c17f88b72cede3be;p=users%2Fwilly%2Fxarray.git crypto: scompress - Fix incorrect stream freeing Fix stream freeing crash by passing the correct pointer. Fixes: 3d72ad46a23a ("crypto: acomp - Move stream management into scomp layer") Signed-off-by: Herbert Xu --- diff --git a/crypto/scompress.c b/crypto/scompress.c index 5e0238af5425..d435d4b24469 100644 --- a/crypto/scompress.c +++ b/crypto/scompress.c @@ -117,7 +117,7 @@ static void scomp_free_streams(struct scomp_alg *alg) if (!ps->ctx) break; - alg->free_ctx(ps); + alg->free_ctx(ps->ctx); } free_percpu(stream);