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

crypto: user - Fix crypto_alg_match race



The function crypto_alg_match returns an algorithm without taking
any references on it.  This means that the algorithm can be freed
at any time, therefore all users of crypto_alg_match are buggy.

This patch fixes this by taking a reference count on the algorithm
to prevent such races.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9cd22323
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