mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
crypto: Add a flag to identify crypto instances
The upcomming crypto user configuration api needs to identify crypto instances. This patch adds a flag that is set if the algorithm is an instance that is build from templates. Signed-off-by: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
8280daad43
commit
64a947b133
2 changed files with 6 additions and 0 deletions
|
|
@ -493,6 +493,7 @@ int crypto_register_instance(struct crypto_template *tmpl,
|
|||
goto err;
|
||||
|
||||
inst->alg.cra_module = tmpl->module;
|
||||
inst->alg.cra_flags |= CRYPTO_ALG_INSTANCE;
|
||||
|
||||
down_write(&crypto_alg_sem);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue