diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 41f8c9c08dbaf86051a16c5488b6c961f65278fc..1e7a43f500ab5fac6a1f5d97af09aa49fd2c5249 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -453,7 +453,7 @@ int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, } unlock_sock_fast(sk, slow); - if (flags & MSG_DONTWAIT) + if (noblock) return -EAGAIN; goto try_again; }