]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix refcount leak in l2tp_ip sockets
authorJames Chapman <jchapman@katalix.com>
Tue, 10 Apr 2012 00:10:42 +0000 (00:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 15:01:44 +0000 (11:01 -0400)
commit5cef885c063a10aba06ebe3ba4c31cc47980fdae
treeba97e12cf85c7f81e4829928ffdd5b4aad3e1fe7
parent2ba66254ad1a378462a14aeb70e39fc8d6613f3e
l2tp: fix refcount leak in l2tp_ip sockets

The l2tp_ip socket close handler does not update the module refcount
correctly which prevents module unload after the first bind() call on
an L2TPv3 IP encapulation socket.

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