[PARISC] Fix some compile problems in ptrace.c
Fix some compile problems: - ret wasn't being initialised in all code paths - I'm pretty sure 'goto out' should have been 'goto out_tsk' Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
92495c0ebc
commit
83aceb5b6a
1 changed files with 3 additions and 2 deletions
|
@ -264,6 +264,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
||||||
* sigkill. perhaps it should be put in the status
|
* sigkill. perhaps it should be put in the status
|
||||||
* that it wants to exit.
|
* that it wants to exit.
|
||||||
*/
|
*/
|
||||||
|
ret = 0;
|
||||||
DBG("sys_ptrace(KILL)\n");
|
DBG("sys_ptrace(KILL)\n");
|
||||||
if (child->exit_state == EXIT_ZOMBIE) /* already dead */
|
if (child->exit_state == EXIT_ZOMBIE) /* already dead */
|
||||||
goto out_tsk;
|
goto out_tsk;
|
||||||
|
@ -344,11 +345,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
||||||
|
|
||||||
case PTRACE_GETEVENTMSG:
|
case PTRACE_GETEVENTMSG:
|
||||||
ret = put_user(child->ptrace_message, (unsigned int __user *) data);
|
ret = put_user(child->ptrace_message, (unsigned int __user *) data);
|
||||||
goto out;
|
goto out_tsk;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = ptrace_request(child, request, addr, data);
|
ret = ptrace_request(child, request, addr, data);
|
||||||
goto out;
|
goto out_tsk;
|
||||||
}
|
}
|
||||||
|
|
||||||
out_wake_notrap:
|
out_wake_notrap:
|
||||||
|
|
Loading…
Add table
Reference in a new issue