summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asymmetric_keys/asymmetric_type.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/asymmetric_keys/asymmetric_type.c b/crypto/asymmetric_keys/asymmetric_type.c
index 052e944bb109..bcbbbd794e1d 100644
--- a/crypto/asymmetric_keys/asymmetric_type.c
+++ b/crypto/asymmetric_keys/asymmetric_type.c
@@ -233,14 +233,14 @@ static void asymmetric_key_describe(const struct key *key, struct seq_file *m)
seq_puts(m, ": ");
subtype->describe(key, m);
- if (kids && kids->id[0]) {
- kid = kids->id[0];
+ if (kids && kids->id[1]) {
+ kid = kids->id[1];
seq_putc(m, ' ');
n = kid->len;
p = kid->data;
- if (n > 8) {
- p += n - 8;
- n = 8;
+ if (n > 4) {
+ p += n - 4;
+ n = 4;
}
seq_printf(m, "%*phN", n, p);
}