mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
crypto: scompress - Fix incorrect stream freeing
Fix stream freeing crash by passing the correct pointer.
Fixes: 3d72ad46a2 ("crypto: acomp - Move stream management into scomp layer")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user