diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c index e4ed2359eb43..b5c6de4f268a 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -1999,6 +1999,9 @@ int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, | |||
1999 | struct compat_mmsghdr __user *compat_entry; | 1999 | struct compat_mmsghdr __user *compat_entry; |
2000 | struct msghdr msg_sys; | 2000 | struct msghdr msg_sys; |
2001 | 2001 | ||
2002 | if (vlen > UIO_MAXIOV) | ||
2003 | vlen = UIO_MAXIOV; | ||
2004 | |||
2002 | datagrams = 0; | 2005 | datagrams = 0; |
2003 | 2006 | ||
2004 | sock = sockfd_lookup_light(fd, &err, &fput_needed); | 2007 | sock = sockfd_lookup_light(fd, &err, &fput_needed); |