From: Florian Westphal Date: Fri, 14 Feb 2014 12:14:39 +0000 (+0100) Subject: ip_tunnel: return more precise errno value when adding tunnel fails X-Git-Tag: v3.15-rc1~113^2~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dd3c9ec2387725a8e529fae64415cd538b955b7;p=pandora-kernel.git ip_tunnel: return more precise errno value when adding tunnel fails Currently this always returns ENOBUFS, because the return value of __ip_tunnel_create is discarded. A more common failure is a duplicate name (EEXIST). Propagate the real error code so userspace can display a more meaningful error message. Signed-off-by: Florian Westphal Signed-off-by: David S. Miller --- Reading git-diff-tree failed