Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18293
b: refs/heads/master
c: 23b0ca5
h: refs/heads/master
i:
  18291: f6fad8b
v: v3
  • Loading branch information
Per Liden authored and David S. Miller committed Jan 13, 2006
1 parent 657b8ea commit 3bc1221
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e4e6a17af35be359cc8f1c924f8f198fbd478cc
refs/heads/master: 23b0ca5bf52cef0ab0f0fe247cb91cbef836e7eb
1 change: 0 additions & 1 deletion trunk/include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ struct genl_family
char name[GENL_NAMSIZ];
unsigned int version;
unsigned int maxattr;
struct module * owner;
struct nlattr ** attrbuf; /* private */
struct list_head ops_list; /* private */
struct list_head family_list; /* private */
Expand Down
7 changes: 0 additions & 7 deletions trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ int genl_register_family(struct genl_family *family)
goto errout_locked;
}

if (!try_module_get(family->owner)) {
err = -EBUSY;
goto errout_locked;
}

if (family->id == GENL_ID_GENERATE) {
u16 newid = genl_generate_id();

Expand Down Expand Up @@ -283,7 +278,6 @@ int genl_unregister_family(struct genl_family *family)
INIT_LIST_HEAD(&family->ops_list);
genl_unlock();

module_put(family->owner);
kfree(family->attrbuf);
genl_ctrl_event(CTRL_CMD_DELFAMILY, family);
return 0;
Expand Down Expand Up @@ -535,7 +529,6 @@ static struct genl_family genl_ctrl = {
.name = "nlctrl",
.version = 0x1,
.maxattr = CTRL_ATTR_MAX,
.owner = THIS_MODULE,
};

static int __init genl_init(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/net/tipc/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ static struct genl_family family = {
.version = TIPC_GENL_VERSION,
.hdrsize = TIPC_GENL_HDRLEN,
.maxattr = 0,
.owner = THIS_MODULE,
};

static struct genl_ops ops = {
Expand Down

0 comments on commit 3bc1221

Please sign in to comment.