diff options
author | Junwei Hu <hujunwei4@huawei.com> | 2019-05-17 19:27:34 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-25 18:23:22 +0200 |
commit | 4b900077784f8480e530f5136f28bd18817e0180 (patch) | |
tree | 64af62aa2869d2f70b25a8d7df3360ddb22f904b /net/vmw_vsock | |
parent | 4af8a327aeba102aaa9b78f3451f725bc590b237 (diff) | |
download | linux-stable-4b900077784f8480e530f5136f28bd18817e0180.tar.gz linux-stable-4b900077784f8480e530f5136f28bd18817e0180.tar.bz2 linux-stable-4b900077784f8480e530f5136f28bd18817e0180.zip |
tipc: fix modprobe tipc failed after switch order of device registration
[ Upstream commit 532b0f7ece4cb2ffd24dc723ddf55242d1188e5e ]
Error message printed:
modprobe: ERROR: could not insert 'tipc': Address family not
supported by protocol.
when modprobe tipc after the following patch: switch order of
device registration, commit 7e27e8d6130c
("tipc: switch order of device registration to fix a crash")
Because sock_create_kern(net, AF_TIPC, ...) is called by
tipc_topsrv_create_listener() in the initialization process
of tipc_net_ops, tipc_socket_init() must be execute before that.
I move tipc_socket_init() into function tipc_init_net().
Fixes: 7e27e8d6130c
("tipc: switch order of device registration to fix a crash")
Signed-off-by: Junwei Hu <hujunwei4@huawei.com>
Reported-by: Wang Wang <wangwang2@huawei.com>
Reviewed-by: Kang Zhou <zhoukang7@huawei.com>
Reviewed-by: Suanming Mou <mousuanming@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/vmw_vsock')
0 files changed, 0 insertions, 0 deletions