lkml.org 
[lkml]   [2014]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next] tun: return proper error code from tun_do_read
From
From: Alex Gartrell <agartrell@fb.com>
Date: Thu, 25 Dec 2014 23:22:49 -0800

> 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>

Applied.


\
 
 \ /
  Last update: 2014-12-31 20:21    [W:0.148 / U:2.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site