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 1ed8ca18790c..099f5e6fb94c 100644 --- a/kernel/cred.c +++ b/kernel/cred.c | |||
@@ -786,8 +786,6 @@ bool creds_are_invalid(const struct cred *cred) | |||
786 | { | 786 | { |
787 | if (cred->magic != CRED_MAGIC) | 787 | if (cred->magic != CRED_MAGIC) |
788 | return true; | 788 | return true; |
789 | if (atomic_read(&cred->usage) < atomic_read(&cred->subscribers)) | ||
790 | return true; | ||
791 | #ifdef CONFIG_SECURITY_SELINUX | 789 | #ifdef CONFIG_SECURITY_SELINUX |
792 | if (selinux_is_enabled()) { | 790 | if (selinux_is_enabled()) { |
793 | if ((unsigned long) cred->security < PAGE_SIZE) | 791 | if ((unsigned long) cred->security < PAGE_SIZE) |