Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210530
b: refs/heads/master
c: 9d1ac65
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Sep 10, 2010
1 parent b1ff6a3 commit e47ef1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff3cb3fec3c5bbb5110e652bbdd410bc99a47e9f
refs/heads/master: 9d1ac65a9698513d00e5608d93fca0c53f536c14
3 changes: 3 additions & 0 deletions trunk/security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ long keyctl_session_to_parent(void)
keyring_r = NULL;

me = current;
rcu_read_lock();
write_lock_irq(&tasklist_lock);

parent = me->real_parent;
Expand Down Expand Up @@ -1319,6 +1320,7 @@ long keyctl_session_to_parent(void)
set_ti_thread_flag(task_thread_info(parent), TIF_NOTIFY_RESUME);

write_unlock_irq(&tasklist_lock);
rcu_read_unlock();
if (oldcred)
put_cred(oldcred);
return 0;
Expand All @@ -1327,6 +1329,7 @@ long keyctl_session_to_parent(void)
ret = 0;
not_permitted:
write_unlock_irq(&tasklist_lock);
rcu_read_unlock();
put_cred(cred);
return ret;

Expand Down

0 comments on commit e47ef1f

Please sign in to comment.