diff options
| -rw-r--r-- | net/ipv4/udp.c | 3 | ||||
| -rw-r--r-- | net/ipv6/udp.c | 3 | 
2 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index abca870d8ff..48cd88e6255 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1249,6 +1249,9 @@ csum_copy_err:  	if (noblock)  		return -EAGAIN; + +	/* starting over for a new packet */ +	msg->msg_flags &= ~MSG_TRUNC;  	goto try_again;  } diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 1e7a43f500a..328985c4088 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -455,6 +455,9 @@ csum_copy_err:  	if (noblock)  		return -EAGAIN; + +	/* starting over for a new packet */ +	msg->msg_flags &= ~MSG_TRUNC;  	goto try_again;  }  |