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>
pull/1188/head
parent
ca17aa6640
commit
5a06ef1f8d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue