diff options
-rw-r--r-- | net/sunrpc/svcsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index f6e1eb1ea720..593f62ff8521 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -779,8 +779,8 @@ svc_udp_recvfrom(struct svc_rqst *rqstp) | |||
779 | } | 779 | } |
780 | 780 | ||
781 | clear_bit(SK_DATA, &svsk->sk_flags); | 781 | clear_bit(SK_DATA, &svsk->sk_flags); |
782 | while ((err == kernel_recvmsg(svsk->sk_sock, &msg, NULL, | 782 | while ((err = kernel_recvmsg(svsk->sk_sock, &msg, NULL, |
783 | 0, 0, MSG_PEEK | MSG_DONTWAIT)) < 0 || | 783 | 0, 0, MSG_PEEK | MSG_DONTWAIT)) < 0 || |
784 | (skb = skb_recv_datagram(svsk->sk_sk, 0, 1, &err)) == NULL) { | 784 | (skb = skb_recv_datagram(svsk->sk_sk, 0, 1, &err)) == NULL) { |
785 | if (err == -EAGAIN) { | 785 | if (err == -EAGAIN) { |
786 | svc_sock_received(svsk); | 786 | svc_sock_received(svsk); |