summaryrefslogtreecommitdiff
path: root/crypto/crypto_null.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-07 21:27:01 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-08 22:20:06 +0800
commit4224c16a384d2f71569e1b9147cdd5a9ff970c78 (patch)
treeb440d423f1d51e33170fb776e858658b8450822e /crypto/crypto_null.c
parent29924b3e0775b174e639468109e7627fbaa0d07d (diff)
downloadlinux-crypto-4224c16a384d2f71569e1b9147cdd5a9ff970c78.tar.gz
linux-crypto-4224c16a384d2f71569e1b9147cdd5a9ff970c78.zip
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_null.c')
0 files changed, 0 insertions, 0 deletions