Florian Westphal 6dd3c9ec23 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 <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-02-17 00:07:09 -05:00
..
2014-01-30 16:48:17 -08:00
2014-02-13 18:33:38 -05:00
2014-01-21 18:13:05 -08:00
2014-02-10 17:51:29 -08:00
2014-02-12 19:26:32 -05:00
2014-02-13 18:33:38 -05:00
2013-09-23 16:52:45 -04:00
2013-10-19 19:36:19 -04:00
2014-01-28 18:04:18 -08:00
2014-02-13 18:33:38 -05:00
2013-11-21 13:09:42 -05:00
2014-02-13 18:33:38 -05:00
2014-02-13 18:15:10 -05:00