summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_gre.c
diff options
context:
space:
mode:
authorSteffen Klassert2014-09-22 10:07:25 +0200
committerDavid S. Miller2014-09-28 22:19:46 +0200
commitd814b847be7b47575a1cc2194760d3461e1c43c8 (patch)
treebd1c67a308488c25dfb2c407d4cf0aa1760ffdbd /net/ipv6/ip6_gre.c
parentip6_tunnel: Return an error when adding an existing tunnel. (diff)
downloadkernel-qcow2-linux-d814b847be7b47575a1cc2194760d3461e1c43c8.tar.gz
kernel-qcow2-linux-d814b847be7b47575a1cc2194760d3461e1c43c8.tar.xz
kernel-qcow2-linux-d814b847be7b47575a1cc2194760d3461e1c43c8.zip
ip6_vti: Return an error when adding an existing tunnel.
vti6_locate() should not return an existing tunnel if create is true. Otherwise it is possible to add the same tunnel multiple times without getting an error. So return NULL if the tunnel that should be created already exists. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions