Commit 67bace72 authored by Kyle McMartin's avatar Kyle McMartin

parisc: remove redundant initialization in sigsegv path of sys_rt_sigreturn

Noticed-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarKyle McMartin <kyle@redhat.com>
parent bcb38ceb
...@@ -98,7 +98,6 @@ void ...@@ -98,7 +98,6 @@ void
sys_rt_sigreturn(struct pt_regs *regs, int in_syscall) sys_rt_sigreturn(struct pt_regs *regs, int in_syscall)
{ {
struct rt_sigframe __user *frame; struct rt_sigframe __user *frame;
struct siginfo si;
sigset_t set; sigset_t set;
unsigned long usp = (regs->gr[30] & ~(0x01UL)); unsigned long usp = (regs->gr[30] & ~(0x01UL));
unsigned long sigframe_size = PARISC_RT_SIGFRAME_SIZE; unsigned long sigframe_size = PARISC_RT_SIGFRAME_SIZE;
...@@ -178,13 +177,7 @@ sys_rt_sigreturn(struct pt_regs *regs, int in_syscall) ...@@ -178,13 +177,7 @@ sys_rt_sigreturn(struct pt_regs *regs, int in_syscall)
give_sigsegv: give_sigsegv:
DBG(1,"sys_rt_sigreturn: Sending SIGSEGV\n"); DBG(1,"sys_rt_sigreturn: Sending SIGSEGV\n");
si.si_signo = SIGSEGV; force_sig(SIGSEGV, current);
si.si_errno = 0;
si.si_code = SI_KERNEL;
si.si_pid = task_pid_vnr(current);
si.si_uid = current_uid();
si.si_addr = &frame->uc;
force_sig_info(SIGSEGV, &si, current);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment