https://github.com/torvalds/linux
Revision 2b0bb01b6edb3e13c7f71e43bf3a173a795b7b66 authored by Steffen Klassert on 22 September 2014, 08:07:24 UTC, committed by David S. Miller on 28 September 2014, 20:19:46 UTC
ip6_tnl_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>
1 parent 5a4ee9a
History
Tip revision: 2b0bb01b6edb3e13c7f71e43bf3a173a795b7b66 authored by Steffen Klassert on 22 September 2014, 08:07:24 UTC
ip6_tunnel: Return an error when adding an existing tunnel.
Tip revision: 2b0bb01
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 279.8 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top