aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/proc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/proc.c b/crypto/proc.c
index 02ff5670c158..c6ede1e9c875 100644
--- a/crypto/proc.c
+++ b/crypto/proc.c
@@ -47,7 +47,7 @@ static int c_show(struct seq_file *m, void *p)
47 seq_printf(m, "priority : %d\n", alg->cra_priority); 47 seq_printf(m, "priority : %d\n", alg->cra_priority);
48 seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt)); 48 seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt));
49 49
50 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { 50 switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
51 case CRYPTO_ALG_TYPE_CIPHER: 51 case CRYPTO_ALG_TYPE_CIPHER:
52 seq_printf(m, "type : cipher\n"); 52 seq_printf(m, "type : cipher\n");
53 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); 53 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
@@ -67,7 +67,10 @@ static int c_show(struct seq_file *m, void *p)
67 seq_printf(m, "type : compression\n"); 67 seq_printf(m, "type : compression\n");
68 break; 68 break;
69 default: 69 default:
70 if (alg->cra_type && alg->cra_type->show) 70 if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
71 seq_printf(m, "type : larval\n");
72 seq_printf(m, "flags : 0x%x\n", alg->cra_flags);
73 } else if (alg->cra_type && alg->cra_type->show)
71 alg->cra_type->show(m, alg); 74 alg->cra_type->show(m, alg);
72 else 75 else
73 seq_printf(m, "type : unknown\n"); 76 seq_printf(m, "type : unknown\n");