aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cred.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cred.c')
-rw-r--r--kernel/cred.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cred.c b/kernel/cred.c
index 31f38a99adf7..2c24870c55d1 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -17,7 +17,6 @@
17#include <linux/init_task.h> 17#include <linux/init_task.h>
18#include <linux/security.h> 18#include <linux/security.h>
19#include <linux/cn_proc.h> 19#include <linux/cn_proc.h>
20#include "cred-internals.h"
21 20
22#if 0 21#if 0
23#define kdebug(FMT, ...) \ 22#define kdebug(FMT, ...) \
@@ -558,8 +557,6 @@ int commit_creds(struct cred *new)
558 atomic_dec(&old->user->processes); 557 atomic_dec(&old->user->processes);
559 alter_cred_subscribers(old, -2); 558 alter_cred_subscribers(old, -2);
560 559
561 sched_switch_user(task);
562
563 /* send notifications */ 560 /* send notifications */
564 if (new->uid != old->uid || 561 if (new->uid != old->uid ||
565 new->euid != old->euid || 562 new->euid != old->euid ||