lkml.org 
[lkml]   [2012]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subjectsendmmsg: put_user vs __put_user
    Shouldn't the compat code in the sendmmsg implementation use the same
    code as the normal code? In which case you probably want something
    like this:

    diff --git a/net/socket.c b/net/socket.c
    index 484cc69..ff40409 100644
    --- a/net/socket.c
    +++ b/net/socket.c
    @@ -2064,7 +2064,7 @@ int __sys_sendmmsg(int fd, struct mmsghdr __user
    *mmsg, unsigned int vlen,
    &msg_sys, flags, &used_address);
    if (err < 0)
    break;
    - err = __put_user(err, &compat_entry->msg_len);
    + err = put_user(err, &compat_entry->msg_len);
    ++compat_entry;
    } else {
    err = __sys_sendmsg(sock, (struct msghdr __user *)entry,

    \
     
     \ /
      Last update: 2012-03-30 15:39    [W:4.248 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site