From: Herbert Xu Date: Thu, 9 Apr 2015 09:40:35 +0000 (+0800) Subject: crypto: api - Move alg ref count init to crypto_check_alg X-Git-Tag: omap-for-v4.1/fixes-rc1~140^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b8e5beb7befe682f9fe90428ea534b01d66568;p=pandora-kernel.git 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 Acked-by: Stephan Mueller --- Reading git-diff-tree failed