diff options
author | Alex Gartrell <agartrell@fb.com> | 2014-12-25 23:22:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-31 14:14:54 -0500 |
commit | 957f094f221f81e457133b1f4c4d95ffa49ff731 (patch) | |
tree | 874c464154b76e2088a98a3f189c9592e2933dfe /include/uapi/linux | |
parent | 87897931c83038af4931990af5b9365b41829921 (diff) | |
download | linux-957f094f221f81e457133b1f4c4d95ffa49ff731.tar.gz linux-957f094f221f81e457133b1f4c4d95ffa49ff731.tar.bz2 linux-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/uapi/linux')
0 files changed, 0 insertions, 0 deletions