X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fparisc%2Fkernel%2Fprocess.c;h=320fca55fa1a4c4c49812ecbaa55161093888714;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=d7365b958f7eb7040539a70a73c5ac3769e6a3f4;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index d7365b958..320fca55f 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -363,8 +363,11 @@ asmlinkage int sys_execve(struct pt_regs *regs) goto out; error = do_execve(filename, (char **) regs->gr[25], (char **) regs->gr[24], regs); - if (error == 0) + if (error == 0) { + task_lock(current); current->ptrace &= ~PT_DTRACE; + task_unlock(current); + } putname(filename); out: