]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[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)
commit79dc4386aec655ad829f320ab90888bacbc7037b
tree82340d9c2be1c96e3e894a4fa29132e4234e74a1
parent85ccc365e91de9f0053c94de4cbc6ce97f8170e7
[GENETLINK]: Fix race in genl_unregister_mc_groups()

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