[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1510318078-31677-1-git-send-email-zhangtonghao@didichuxing.com>
Date: Fri, 10 Nov 2017 04:47:58 -0800
From: Tonghao Zhang <xiangxia.m.yue@...il.com>
To: netdev@...r.kernel.org
Cc: Tonghao Zhang <zhangtonghao@...ichuxing.com>
Subject: [PATCH] socket: add THIS_MODULE to sock_fs_type.
As important member of file_system_type, we set
->owner for sock_fs_type.
Signed-off-by: Tonghao Zhang <zhangtonghao@...ichuxing.com>
---
net/socket.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/socket.c b/net/socket.c
index c729625..b085f14 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -370,6 +370,7 @@ static struct dentry *sockfs_mount(struct file_system_type *fs_type,
static struct vfsmount *sock_mnt __read_mostly;
static struct file_system_type sock_fs_type = {
+ .owner = THIS_MODULE,
.name = "sockfs",
.mount = sockfs_mount,
.kill_sb = kill_anon_super,
--
1.8.3.1
Powered by blists - more mailing lists