git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keyctl_session_to_parent(): use thread_group_empty() to check singlethreadness
[pandora-kernel.git]
/
security
/
keys
/
keyctl.c
diff --git
a/security/keys/keyctl.c
b/security/keys/keyctl.c
index
8f4dce1
..
13074b4
100644
(file)
--- a/
security/keys/keyctl.c
+++ b/
security/keys/keyctl.c
@@
-1269,7
+1269,7
@@
long keyctl_session_to_parent(void)
goto not_permitted;
/* the parent must be single threaded */
- if (
atomic_read(&parent->signal->count) != 1
)
+ if (
!thread_group_empty(parent)
)
goto not_permitted;
/* the parent and the child must have different session keyrings or