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)
commitd1f224ae186b834af647661ffaf403a817c050ce
treeba97e12cf85c7f81e4829928ffdd5b4aad3e1fe7
parent31304165ffb888483e0f7c805876f25f493a3049
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