aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cryptomgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/cryptomgr.c')
-rw-r--r--crypto/cryptomgr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/cryptomgr.c b/crypto/cryptomgr.c
index e0ebe1b44b99..ae54942e3b31 100644
--- a/crypto/cryptomgr.c
+++ b/crypto/cryptomgr.c
@@ -31,6 +31,8 @@ struct cryptomgr_param {
31 } alg; 31 } alg;
32 32
33 struct { 33 struct {
34 u32 type;
35 u32 mask;
34 char name[CRYPTO_MAX_ALG_NAME]; 36 char name[CRYPTO_MAX_ALG_NAME];
35 } larval; 37 } larval;
36 38
@@ -62,7 +64,8 @@ out:
62 return; 64 return;
63 65
64err: 66err:
65 crypto_larval_error(param->larval.name); 67 crypto_larval_error(param->larval.name, param->larval.type,
68 param->larval.mask);
66 goto out; 69 goto out;
67} 70}
68 71
@@ -101,6 +104,8 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval)
101 param->alg.data.name[len] = 0; 104 param->alg.data.name[len] = 0;
102 105
103 memcpy(param->larval.name, larval->alg.cra_name, CRYPTO_MAX_ALG_NAME); 106 memcpy(param->larval.name, larval->alg.cra_name, CRYPTO_MAX_ALG_NAME);
107 param->larval.type = larval->alg.cra_flags;
108 param->larval.mask = larval->mask;
104 109
105 INIT_WORK(&param->work, cryptomgr_probe, param); 110 INIT_WORK(&param->work, cryptomgr_probe, param);
106 schedule_work(&param->work); 111 schedule_work(&param->work);