lkml.org 
[lkml]   [2008]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] x86 ptrace: fix compat PTRACE_SETREGS
    Date

    Simple typo fix for regression introduced by the user_regset changes.

    Signed-off-by: Roland McGrath <roland@redhat.com>
    ---
    arch/x86/kernel/ptrace.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
    index 702c33e..d862e39 100644
    --- a/arch/x86/kernel/ptrace.c
    +++ b/arch/x86/kernel/ptrace.c
    @@ -1160,7 +1160,7 @@ static int genregs32_set(struct task_struct *target,
    if (kbuf) {
    const compat_ulong_t *k = kbuf;
    while (count > 0 && !ret) {
    - ret = putreg(target, pos, *k++);
    + ret = putreg32(target, pos, *k++);
    count -= sizeof(*k);
    pos += sizeof(*k);
    }
    @@ -1171,7 +1171,7 @@ static int genregs32_set(struct task_struct *target,
    ret = __get_user(word, u++);
    if (ret)
    break;
    - ret = putreg(target, pos, word);
    + ret = putreg32(target, pos, word);
    count -= sizeof(*u);
    pos += sizeof(*u);
    }

    \
     
     \ /
      Last update: 2008-02-22 05:39    [W:0.022 / U:59.132 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site