Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306042
b: refs/heads/master
c: e1b1fd7
h: refs/heads/master
v: v3
  • Loading branch information
Matt Fleming authored and Al Viro committed May 22, 2012
1 parent 7cd8e40 commit 402c38b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3883e301bf05457d09ffc16c03ead6182ac3d732
refs/heads/master: e1b1fd79a04396d5ec971e9e4d4711b5a58ad7e3
25 changes: 12 additions & 13 deletions trunk/arch/avr32/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,21 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
*/
ret |= !valid_user_regs(regs);

if (ret != 0) {
force_sigsegv(sig, current);
return;
}

/*
* Block the signal if we were unsuccessful.
* Block the signal if we were successful.
*/
if (ret != 0 || !(ka->sa.sa_flags & SA_NODEFER)) {
spin_lock_irq(&current->sighand->siglock);
sigorsets(&current->blocked, &current->blocked,
&ka->sa.sa_mask);
spin_lock_irq(&current->sighand->siglock);
sigorsets(&current->blocked, &current->blocked,
&ka->sa.sa_mask);
if (!(ka->sa.sa_flags & SA_NODEFER))
sigaddset(&current->blocked, sig);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
}

if (ret == 0)
return;

force_sigsegv(sig, current);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
}

/*
Expand Down

0 comments on commit 402c38b

Please sign in to comment.