Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/netlink/genetlink.c

Filename:/net/netlink/genetlink.c
Lines Added:2
Lines Deleted:4
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.24 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.26-rc5  2.6.26-rc6  2.6.26-rc6-git6 

Location
[  2.6.25-rc7
  [  net
    [  netlink
       o  genetlink.c

Patch

diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 150579a..d16929c 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -230,10 +230,8 @@ static void genl_unregister_mc_groups(struct genl_family *family)
 {
    struct genl_multicast_group *grp, *tmp;
 
-   genl_lock();
    list_for_each_entry_safe(grp, tmp, &family->mcast_groups, list)
       __genl_unregister_mc_group(family, grp);
-   genl_unlock();
 }
 
 /**
@@ -396,10 +394,10 @@ int genl_unregister_family(struct genl_family *family)
 {
    struct genl_family *rc;
 
-   genl_unregister_mc_groups(family);
-
    genl_lock();
 
+   genl_unregister_mc_groups(family);
+
    list_for_each_entry(rc, genl_family_chain(family->id), family_list) {
       if (family->id != rc->id || strcmp(rc->name, family->name))
          continue;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.