]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: Fix locking in l2tp_ip.c
authorDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2011 20:39:01 +0000 (13:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2011 20:39:01 +0000 (13:39 -0700)
commita913feda8b06dab28cdd78489547a3bdc69abe24
treeb3d40d33c4ff5470eb3642d44064fe4ec4caff92
parent3453c5ea0b97531d4264000acadcf4762fd91efb
l2tp: Fix locking in l2tp_ip.c

Both l2tp_ip_connect() and l2tp_ip_sendmsg() must take the socket
lock.  They both modify socket state non-atomically, and in particular
l2tp_ip_sendmsg() increments socket private counters without using
atomic operations.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip.c