]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbf7134c7a477e4013613838e9e790ca4f0a435b
tree02ce50a2a4321cb2872a26196fba6b4d4d41a2ba
parentb9ca0f45f0621e03542e50fdcd54cb07e983c0cd
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