[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOPLpQf2bmj+i_zYtsS8JNzTDuBxCO5ByNRRqwv0kxaDBFdezg@mail.gmail.com>
Date: Fri, 30 Mar 2012 09:36:11 -0400
From: Ulrich Drepper <drepper@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: sendmmsg: 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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists