]> err.no Git - linux-2.6/commit
[IPV6]: Lost locking when inserting a flowlabel in ipv6_fl_list
authorPavel Emelyanov <xemul@openvz.org>
Thu, 18 Oct 2007 12:14:58 +0000 (05:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 12:14:58 +0000 (05:14 -0700)
commit04028045a12ba941c579d0f3238489333ac18ea4
treee12d202ef1e17047742ddb9a70731ebc651f6c11
parent009e8c965fd72a78636b9a96c7015109c5c70176
[IPV6]: Lost locking when inserting a flowlabel in ipv6_fl_list

The new flowlabels should be inserted into the sock list
under the ip6_sk_fl_lock. This was lost in one place.

This list is naturally protected with the socket lock, but
the fl6_sock_lookup() is called without it, so another
protection is required.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_flowlabel.c