aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlex Gartrell <agartrell@fb.com>2014-12-25 23:22:49 -0800
committerDavid S. Miller <davem@davemloft.net>2014-12-31 14:14:54 -0500
commit957f094f221f81e457133b1f4c4d95ffa49ff731 (patch)
tree874c464154b76e2088a98a3f189c9592e2933dfe /include
parenttun: Fixed unsigned/signed comparison (diff)
downloadlinux-dev-957f094f221f81e457133b1f4c4d95ffa49ff731.tar.xz
linux-dev-957f094f221f81e457133b1f4c4d95ffa49ff731.zip
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions