[lkml]   [2009]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch 10/22] sparc: sys32.S incorrect compat-layer splice() system call
    2.6.30-stable review patch.  If anyone has any objections, please let us know.

    From: Mathieu Desnoyers <>

    [ Upstream commit e2c6cbd9ace61039d3de39e717195e38f1492aee ]

    I think arch/sparc/kernel/sys32.S has an incorrect splice definition:

    SIGN2(sys32_splice, sys_splice, %o0, %o1)

    The splice() prototype looks like :

    long splice(int fd_in, loff_t *off_in, int fd_out,
    loff_t *off_out, size_t len, unsigned int flags);

    So I think we should have :

    SIGN2(sys32_splice, sys_splice, %o0, %o2)

    Signed-off-by: Mathieu Desnoyers <>
    Signed-off-by: David S. Miller <>
    Signed-off-by: Greg Kroah-Hartman <>
    arch/sparc/kernel/sys32.S | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/sparc/kernel/sys32.S
    +++ b/arch/sparc/kernel/sys32.S
    @@ -134,7 +134,7 @@ SIGN1(sys32_getpeername, sys_getpeername
    SIGN1(sys32_getsockname, sys_getsockname, %o0)
    SIGN2(sys32_ioprio_get, sys_ioprio_get, %o0, %o1)
    SIGN3(sys32_ioprio_set, sys_ioprio_set, %o0, %o1, %o2)
    -SIGN2(sys32_splice, sys_splice, %o0, %o1)
    +SIGN2(sys32_splice, sys_splice, %o0, %o2)
    SIGN2(sys32_sync_file_range, compat_sync_file_range, %o0, %o5)
    SIGN2(sys32_tee, sys_tee, %o0, %o1)
    SIGN1(sys32_vmsplice, compat_sys_vmsplice, %o0)

     \ /
      Last update: 2009-09-11 02:37    [W:0.020 / U:6.940 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site