diff options
author | Junwei Hu <[email protected]> | 2019-05-17 19:27:34 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-05-17 11:33:51 -0700 |
commit | 532b0f7ece4cb2ffd24dc723ddf55242d1188e5e (patch) | |
tree | d428501ce602df759779cfc11cff1e1e0e4c1802 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 38a04b83ab3033905114d608737504e66350088b (diff) |
tipc: fix modprobe tipc failed after switch order of device registration
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 <[email protected]>
Reported-by: Wang Wang <[email protected]>
Reviewed-by: Kang Zhou <[email protected]>
Reviewed-by: Suanming Mou <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions