lkml.org 
[lkml]   [2018]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 02/11] signal/sh: Ensure si_signo is initialized in do_divide_error
    Set si_signo.

    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    Cc: Rich Felker <dalias@libc.org>
    Cc: Paul Mundt <lethal@linux-sh.org>
    Cc: linux-sh@vger.kernel.org
    Cc: stable@vger.kernel.org
    Fixes: 0983b31849bb ("sh: Wire up division and address error exceptions on SH-2A.")
    Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
    ---
    arch/sh/kernel/traps_32.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c
    index 57cff00cad17..b3770bb26211 100644
    --- a/arch/sh/kernel/traps_32.c
    +++ b/arch/sh/kernel/traps_32.c
    @@ -609,7 +609,8 @@ asmlinkage void do_divide_error(unsigned long r4)
    break;
    }

    - force_sig_info(SIGFPE, &info, current);
    + info.si_signo = SIGFPE;
    + force_sig_info(info.si_signo, &info, current);
    }
    #endif

    --
    2.14.1
    \
     
     \ /
      Last update: 2018-01-14 23:25    [W:2.122 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site