mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
l2tp: device MTU setup, tunnel socket needs a lock
The MTU overhead calculation in L2TP device set-up
merged via commit b784e7ebfc
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>
This commit is contained in:
parent
4a6e3c5def
commit
57240d0078
3 changed files with 4 additions and 2 deletions
|
@ -298,7 +298,7 @@ int kernel_sendpage(struct socket *sock, struct page *page, int offset,
|
|||
int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg);
|
||||
int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);
|
||||
|
||||
/* Following routine returns the IP overhead imposed by a socket. */
|
||||
/* Routine returns the IP overhead imposed by a (caller-protected) socket. */
|
||||
u32 kernel_sock_ip_overhead(struct sock *sk);
|
||||
|
||||
#define MODULE_ALIAS_NETPROTO(proto) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue