net/ipv6/udp: UDP encapsulation: move socket locking into udpv6_queue_rcv_skb()
authorBenjamin LaHaise <bcrl@kvack.org>
Fri, 27 Apr 2012 08:23:59 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Apr 2012 02:21:51 +0000 (22:21 -0400)
commitcb80ef463d1881757ade3197cdf875a2ff856651
treea2b8f2b4f087dfc90d9148a94fcc2aa6702eb5eb
parentf7ad74fef3af6c6e2ef7f01c5589d77fe7db3d7c
net/ipv6/udp: UDP encapsulation: move socket locking into udpv6_queue_rcv_skb()

In order to make sure that when the encap_rcv() hook is introduced it is
not called with the socket lock held, move socket locking from callers into
udpv6_queue_rcv_skb(), matching what happens in IPv4.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c