diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-09 17:40:35 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-10 21:39:24 +0800 |
commit | e9b8e5beb7befe682f9fe90428ea534b01d66568 (patch) | |
tree | f3592cb3e6f31960257ca0e83765241eef219adb /mm/highmem.c | |
parent | 1711045fb11b4aa9afda066ce5fe68b2345d52c5 (diff) | |
download | linux-e9b8e5beb7befe682f9fe90428ea534b01d66568.tar.gz linux-e9b8e5beb7befe682f9fe90428ea534b01d66568.tar.bz2 linux-e9b8e5beb7befe682f9fe90428ea534b01d66568.zip |
crypto: api - Move alg ref count init to crypto_check_alg
We currently initialise the crypto_alg ref count in the function
__crypto_register_alg. As one of the callers of that function
crypto_register_instance needs to obtain a ref count before it
calls __crypto_register_alg, we need to move the initialisation
out of there.
Since both callers of __crypto_register_alg call crypto_check_alg,
this is the logical place to perform the initialisation.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Stephan Mueller <smueller@chronox.de>
Diffstat (limited to 'mm/highmem.c')
0 files changed, 0 insertions, 0 deletions