diff options
Diffstat (limited to 'security/keys/keyctl.c')
-rw-r--r-- | security/keys/keyctl.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 639226afd0db..b2b0998d6abd 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c | |||
@@ -505,13 +505,11 @@ okay: | |||
505 | 505 | ||
506 | ret = snprintf(tmpbuf, PAGE_SIZE - 1, | 506 | ret = snprintf(tmpbuf, PAGE_SIZE - 1, |
507 | "%s;%d;%d;%08x;%s", | 507 | "%s;%d;%d;%08x;%s", |
508 | key_ref_to_ptr(key_ref)->type->name, | 508 | key->type->name, |
509 | key_ref_to_ptr(key_ref)->uid, | 509 | key->uid, |
510 | key_ref_to_ptr(key_ref)->gid, | 510 | key->gid, |
511 | key_ref_to_ptr(key_ref)->perm, | 511 | key->perm, |
512 | key_ref_to_ptr(key_ref)->description ? | 512 | key->description ?: ""); |
513 | key_ref_to_ptr(key_ref)->description : "" | ||
514 | ); | ||
515 | 513 | ||
516 | /* include a NUL char at the end of the data */ | 514 | /* include a NUL char at the end of the data */ |
517 | if (ret > PAGE_SIZE - 1) | 515 | if (ret > PAGE_SIZE - 1) |