mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[PATCH] genetlink: don't touch module ref count
Increasing the module ref count at registration will block the module from ever being unloaded. In fact, genetlink should not care about the owner at all. This patch removes the owner field from the struct registered with genetlink. Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2e4e6a17af
commit
23b0ca5bf5
3 changed files with 0 additions and 9 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue