From 5a06ef1f8da226b2de587e22c17f88b72cede3be Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sun, 16 Mar 2025 17:50:22 +0800 Subject: [PATCH] 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 --- crypto/scompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/scompress.c b/crypto/scompress.c index 5e0238af54258..d435d4b24469d 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); -- 2.39.5