Skip to content

Commit

Permalink
xtensa: fix build failure in xtensa/kernel/signal.c
Browse files Browse the repository at this point in the history
Caused by commit 3785006

    "xtensa: don't mask signals if we fail to setup signal stack"

It assigns a return value to "ret", but there is no such variable
anywhere in scope.  Create one.

Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Chris Zankel <chris@zankel.net>
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  • Loading branch information
Paul Gortmaker committed Apr 23, 2012
1 parent 1bc68a9 commit 9112a6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/xtensa/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ int do_signal(struct pt_regs *regs, sigset_t *oldset)
signr = get_signal_to_deliver(&info, &ka, regs, NULL);

if (signr > 0) {
int ret;

/* Are we from a system call? */

Expand Down

0 comments on commit 9112a6b

Please sign in to comment.