aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cred.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-05-07 05:27:54 -0400
committerIngo Molnar <mingo@elte.hu>2010-05-07 05:27:54 -0400
commit48652ced1533c3372f996a0d83b6e73b1f1c9381 (patch)
tree5e17729cfcdc97bf798a17b57cdb888b4ded65b0 /kernel/cred.c
parent99bd5e2f245d8cd17d040c82d40becdb3efd9b69 (diff)
parent66f41d4c5c8a5deed66fdcc84509376c9a0bf9d8 (diff)
Merge commit 'v2.6.34-rc6' into sched/core
Diffstat (limited to 'kernel/cred.c')
-rw-r--r--kernel/cred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cred.c b/kernel/cred.c
index 4f483be5944c..8f3672a58a1e 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -397,6 +397,8 @@ struct cred *prepare_usermodehelper_creds(void)
397 397
398error: 398error:
399 put_cred(new); 399 put_cred(new);
400 return NULL;
401
400free_tgcred: 402free_tgcred:
401#ifdef CONFIG_KEYS 403#ifdef CONFIG_KEYS
402 kfree(tgcred); 404 kfree(tgcred);
@@ -788,8 +790,6 @@ bool creds_are_invalid(const struct cred *cred)
788{ 790{
789 if (cred->magic != CRED_MAGIC) 791 if (cred->magic != CRED_MAGIC)
790 return true; 792 return true;
791 if (atomic_read(&cred->usage) < atomic_read(&cred->subscribers))
792 return true;
793#ifdef CONFIG_SECURITY_SELINUX 793#ifdef CONFIG_SECURITY_SELINUX
794 if (selinux_is_enabled()) { 794 if (selinux_is_enabled()) {
795 if ((unsigned long) cred->security < PAGE_SIZE) 795 if ((unsigned long) cred->security < PAGE_SIZE)