diff options
Diffstat (limited to 'kernel/cred.c')
-rw-r--r-- | kernel/cred.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cred.c b/kernel/cred.c index ce1a52b9e8a3..62af1816c235 100644 --- a/kernel/cred.c +++ b/kernel/cred.c | |||
@@ -793,8 +793,6 @@ bool creds_are_invalid(const struct cred *cred) | |||
793 | { | 793 | { |
794 | if (cred->magic != CRED_MAGIC) | 794 | if (cred->magic != CRED_MAGIC) |
795 | return true; | 795 | return true; |
796 | if (atomic_read(&cred->usage) < atomic_read(&cred->subscribers)) | ||
797 | return true; | ||
798 | #ifdef CONFIG_SECURITY_SELINUX | 796 | #ifdef CONFIG_SECURITY_SELINUX |
799 | if (selinux_is_enabled()) { | 797 | if (selinux_is_enabled()) { |
800 | if ((unsigned long) cred->security < PAGE_SIZE) | 798 | if ((unsigned long) cred->security < PAGE_SIZE) |