commit | 957f094f221f81e457133b1f4c4d95ffa49ff731 | [log] [tgz] |
---|---|---|
author | Alex Gartrell <agartrell@fb.com> | Thu Dec 25 23:22:49 2014 -0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Dec 31 14:14:54 2014 -0500 |
tree | 874c464154b76e2088a98a3f189c9592e2933dfe | |
parent | 87897931c83038af4931990af5b9365b41829921 [diff] |
tun: return proper error code from tun_do_read Instead of -1 with EAGAIN, read on a O_NONBLOCK tun fd will return 0. This fixes this by properly returning the error code from __skb_recv_datagram. Signed-off-by: Alex Gartrell <agartrell@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>