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

crypto: api - Do not displace newly registered algorithms



We have a mechanism where newly registered algorithms of a higher
priority can displace existing instances that use a different
implementation of the same algorithm with a lower priority.

Unfortunately the same mechanism can cause a newly registered
algorithm to displace itself if it depends on an existing version
of the same algorithm.

This patch fixes this by keeping all algorithms that the newly
reigstered algorithm depends on, thus protecting them from being
removed.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a367b17f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment