net: restore the original spinlock to protect unicast list
authorJiri Pirko <jpirko@redhat.com>
Thu, 30 Jul 2009 01:06:12 +0000 (01:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Aug 2009 19:20:46 +0000 (12:20 -0700)
commita6ac65db2329e7685299666f5f7b6093c7b0f3a0
tree02ce50a2a4321cb2872a26196fba6b4d4d41a2ba
parent50c643e7652458e649955408685a16e88ea6dbae
net: restore the original spinlock to protect unicast list

There is a path when an assetion in dev_unicast_sync() appears.

igmp6_group_added -> dev_mc_add -> __dev_set_rx_mode ->
-> vlan_dev_set_rx_mode -> dev_unicast_sync

Therefore we cannot protect this list with rtnl. This patch restores the
original protecting this list with spinlock.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Tested-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c