Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232949
b: refs/heads/master
c: fb2b2a1
h: refs/heads/master
i:
  232947: ec15fe1
v: v3
  • Loading branch information
Tetsuo Handa authored and Linus Torvalds committed Feb 7, 2011
1 parent f05836d commit 8fe909d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2edeaa34a6e3f2c43b667f6c4f7b27944b811695
refs/heads/master: fb2b2a1d37f80cc818fd4487b510f4e11816e5e1
4 changes: 2 additions & 2 deletions trunk/kernel/cred.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon)
validate_creds(old);

*new = *old;
atomic_set(&new->usage, 1);
set_cred_subscribers(new, 0);
get_uid(new->user);
get_group_info(new->group_info);

Expand All @@ -674,8 +676,6 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon)
if (security_prepare_creds(new, old, GFP_KERNEL) < 0)
goto error;

atomic_set(&new->usage, 1);
set_cred_subscribers(new, 0);
put_cred(old);
validate_creds(new);
return new;
Expand Down

0 comments on commit 8fe909d

Please sign in to comment.