[GENETLINK]: Fix race in genl_unregister_mc_groups()
authorThomas Graf <tgraf@suug.ch>
Tue, 24 Jul 2007 22:32:46 +0000 (15:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2007 22:32:46 +0000 (15:32 -0700)
family->mcast_groups is protected by genl_lock so it must
be held while accessing the list in genl_unregister_mc_groups().
Requires adding a non-locking variant of genl_unregister_mc_group().

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c

Simple merge