diff mbox series

[1/2] crypto: scompress - Fix incorrect stream freeing

Message ID d36c40f58fbde5777d8a589383f95f33b5a56331.1742118507.git.herbert@gondor.apana.org.au
State New
Headers show
Series [1/2] crypto: scompress - Fix incorrect stream freeing | expand

Commit Message

Herbert Xu March 16, 2025, 9:50 a.m. UTC
Fix stream freeing crash by passing the correct pointer.

Fixes: 3d72ad46a23a ("crypto: acomp - Move stream management into scomp layer")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/scompress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/crypto/scompress.c b/crypto/scompress.c
index 57bb7353d767..d4be977b9729 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);