aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/asymmetric_keys')
-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)
233 seq_puts(m, ": "); 233 seq_puts(m, ": ");
234 subtype->describe(key, m); 234 subtype->describe(key, m);
235 235
236 if (kids && kids->id[0]) { 236 if (kids && kids->id[1]) {
237 kid = kids->id[0]; 237 kid = kids->id[1];
238 seq_putc(m, ' '); 238 seq_putc(m, ' ');
239 n = kid->len; 239 n = kid->len;
240 p = kid->data; 240 p = kid->data;
241 if (n > 8) { 241 if (n > 4) {
242 p += n - 8; 242 p += n - 4;
243 n = 8; 243 n = 4;
244 } 244 }
245 seq_printf(m, "%*phN", n, p); 245 seq_printf(m, "%*phN", n, p);
246 } 246 }