X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Fkeys%2Fkeyctl.c;h=13074b4547433ab20929fa493114b507c9e4389f;hb=dd98acf74762764fbc4382a1d9a244f11a2658cc;hp=8f4dce1987c492c59a9e2a6870b1bebaeaac09a8;hpb=7a9b149212f3716c598afe973b6261fd58453b7a;p=pandora-kernel.git diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 8f4dce1987c4..13074b454743 100644 --- 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