As important member of file_system_type, we set ->owner for sock_fs_type.
Signed-off-by: Tonghao Zhang <zhangtong...@didichuxing.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