From: Alex Gartrell Date: Fri, 26 Dec 2014 07:22:49 +0000 (-0800) Subject: tun: return proper error code from tun_do_read X-Git-Tag: fixes-v4.0-rc1~150^2~315 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=957f094f221f81e457133b1f4c4d95ffa49ff731;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed