xtensa: fix build failure in xtensa/kernel/signal.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 18 Apr 2012 20:17:13 +0000 (16:17 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 23 Apr 2012 16:24:55 +0000 (12:24 -0400)
Caused by commit 3785006ac3c8941feb63097c416de92114a6bc39

    "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>
arch/xtensa/kernel/signal.c

index b69b000349fcdb20888a6e080cf8045ae82fc6b7..d78869a00b11c8a2a4584d26b6528dd98ff685c7 100644 (file)
@@ -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? */