Skip to content
Commit cfb32c65 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: scomp - Fix null-pointer deref when freeing streams



As the scomp streams are freed when an algorithm is unregistered,
it is possible that the algorithm has never been used at all (e.g.,
an algorithm that does not have a self-test).  So test whether the
streams exist before freeing them.

Reported-by: default avatarSourabh Jain <sourabhjain@linux.ibm.com>
Fixes: 3d72ad46 ("crypto: acomp - Move stream management into scomp layer")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Tested-by: default avatarSourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1ddaff40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment