diff options
author | David S. Miller <davem@davemloft.net> | 2010-04-07 02:53:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-07 02:53:30 -0400 |
commit | 4a35ecf8bf1c4b039503fa554100fe85c761de76 (patch) | |
tree | 9b75f5d5636004d9a9aa496924377379be09aa1f /net/socket.c | |
parent | b4d562e3c3553ac58c7120555c4e4aefbb090a2a (diff) | |
parent | fb9e2d887243499b8d28efcf80821c4f6a092395 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/bonding/bond_main.c
drivers/net/via-velocity.c
drivers/net/wireless/iwlwifi/iwl-agn.c
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c index ae904b58d9f5..ad2e8153c618 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -2134,6 +2134,10 @@ int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, | |||
2134 | break; | 2134 | break; |
2135 | ++datagrams; | 2135 | ++datagrams; |
2136 | 2136 | ||
2137 | /* MSG_WAITFORONE turns on MSG_DONTWAIT after one packet */ | ||
2138 | if (flags & MSG_WAITFORONE) | ||
2139 | flags |= MSG_DONTWAIT; | ||
2140 | |||
2137 | if (timeout) { | 2141 | if (timeout) { |
2138 | ktime_get_ts(timeout); | 2142 | ktime_get_ts(timeout); |
2139 | *timeout = timespec_sub(end_time, *timeout); | 2143 | *timeout = timespec_sub(end_time, *timeout); |