l2tp: device MTU setup, tunnel socket needs a lock
authorR. Parameswaran <parameswaran.r7@gmail.com>
Thu, 13 Apr 2017 01:31:04 +0000 (18:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:01:48 +0000 (13:01 -0400)
commit57240d007816486131bee88cd474c2a71f0fe224
treeeb6a94027fd814fd1a468ee127340b6201056bfd
parent4a6e3c5def13c91adf2acc613837001f09af3baa
l2tp: device MTU setup, tunnel socket needs a lock

The MTU overhead calculation in L2TP device set-up
merged via commit b784e7ebfce8cfb16c6f95e14e8532d0768ab7ff
needs to be adjusted to lock the tunnel socket while
referencing the sub-data structures to derive the
socket's IP overhead.

Reported-by: Guillaume Nault <g.nault@alphalink.fr>
Tested-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: R. Parameswaran <rparames@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
net/l2tp/l2tp_eth.c
net/socket.c