Skip to content

Commit 5a06ef1

Browse files
committed
crypto: scompress - Fix incorrect stream freeing
Fix stream freeing crash by passing the correct pointer. Fixes: 3d72ad4 ("crypto: acomp - Move stream management into scomp layer") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ca17aa6 commit 5a06ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/scompress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static void scomp_free_streams(struct scomp_alg *alg)
117117
if (!ps->ctx)
118118
break;
119119

120-
alg->free_ctx(ps);
120+
alg->free_ctx(ps->ctx);
121121
}
122122

123123
free_percpu(stream);

0 commit comments

Comments
 (0)