lkml.org 
[lkml]   [2011]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 09/24] C6X: signal management
    From
    Date
    On Wed, 2011-08-31 at 17:26 -0400, Mark Salter wrote:
    > +static int setup_rt_frame(int signr, struct k_sigaction *ka, siginfo_t *info,
    > + sigset_t *set, struct pt_regs *regs)
    > +{
    > + struct rt_sigframe __user *frame;
    > + unsigned long __user *retcode;
    > + int err = 0;
    > +
    > + frame = get_sigframe(ka, regs, sizeof(*frame));
    > +
    > + if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
    > + goto segv_and_exit;

    [...]

    > +segv_and_exit:
    > + force_sig(SIGSEGV, current);
    > + return -EFAULT;
    > +}

    Shouldn't that really be a call to force_sigsegv(signr, current) ?




    \
     
     \ /
      Last update: 2011-09-01 11:53    [W:0.026 / U:0.328 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site