]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: take a reference for kernel sockets in l2tp_tunnel_sock_lookup
authorTom Parkin <tparkin@katalix.com>
Tue, 19 Mar 2013 06:11:17 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 16:10:38 +0000 (12:10 -0400)
commit8d1845793d63c4c3c99e1f77f0da8ede186296d7
treeb0ad882a2b2fca7777d01bbbe873da57e1c42609
parented71a7dcda704b1ca8b5d30bf83861f88e941349
l2tp: take a reference for kernel sockets in l2tp_tunnel_sock_lookup

When looking up the tunnel socket in struct l2tp_tunnel, hold a reference
whether the socket was created by the kernel or by userspace.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c