diff options
author | James Morris | 2009-07-13 16:30:40 +0200 |
---|---|---|
committer | James Morris | 2009-07-13 16:30:40 +0200 |
commit | 7d45ecafb6792ca68da9517969d37d910601845f (patch) | |
tree | a98b1074e5577e66a97963745f975404d0aac266 /kernel/ptrace.c | |
parent | Revert "SELinux: Convert avc_audit to use lsm_audit.h" (diff) | |
parent | Merge branch 'kmemleak' of git://linux-arm.org/linux-2.6 (diff) | |
download | kernel-qcow2-linux-7d45ecafb6792ca68da9517969d37d910601845f.tar.gz kernel-qcow2-linux-7d45ecafb6792ca68da9517969d37d910601845f.tar.xz kernel-qcow2-linux-7d45ecafb6792ca68da9517969d37d910601845f.zip |
Merge branch 'master' into next
Conflicts:
include/linux/personality.h
Use Linus' version.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 9a4184e04f29..307c285af59e 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -181,8 +181,8 @@ int ptrace_attach(struct task_struct *task) * interference; SUID, SGID and LSM creds get determined differently * under ptrace. */ - retval = mutex_lock_interruptible(&task->cred_guard_mutex); - if (retval < 0) + retval = -ERESTARTNOINTR; + if (mutex_lock_interruptible(&task->cred_guard_mutex)) goto out; task_lock(task); |