Skip to content
Commit 957f094f authored by Alex Gartrell's avatar Alex Gartrell Committed by David S. Miller
Browse files

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: default avatarAlex Gartrell <agartrell@fb.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87897931
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment