diff options
author | Florian Westphal | 2014-02-14 13:14:39 +0100 |
---|---|---|
committer | David S. Miller | 2014-02-17 06:07:09 +0100 |
commit | 6dd3c9ec2387725a8e529fae64415cd538b955b7 (patch) | |
tree | 0429d81631a0790eba095bf60d86725d679bc734 /net/tipc | |
parent | openvswitch: rename ->sync to ->syncp (diff) | |
download | kernel-qcow2-linux-6dd3c9ec2387725a8e529fae64415cd538b955b7.tar.gz kernel-qcow2-linux-6dd3c9ec2387725a8e529fae64415cd538b955b7.tar.xz kernel-qcow2-linux-6dd3c9ec2387725a8e529fae64415cd538b955b7.zip |
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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions