VSOCK: Only check error on skb_recv_datagram when skb is NULL
authorJorgen Hansen <jhansen@vmware.com>
Tue, 19 Apr 2016 06:58:52 +0000 (23:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2016 00:42:01 +0000 (20:42 -0400)
commit9c995cc9a206a008699da82f6cd01e9b2615649a
treed65dff1c7c5fed3b72b635641af27977baf0ba56
parent2309236c13feae619572324efd3e910e66ef6bd0
VSOCK: Only check error on skb_recv_datagram when skb is NULL

If skb_recv_datagram returns an skb, we should ignore the err
value returned. Otherwise, datagram receives will return EAGAIN
when they have to wait for a datagram.

Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/vmci_transport.c