summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/core_env.c
diff options
context:
space:
mode:
authorJunwei Hu <hujunwei4@huawei.com>2019-05-17 14:27:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-25 19:16:14 +0300
commit2d08f204328acaf85ac2c6fe5d5d9d4760f12e13 (patch)
treec9353e10aa53a3b2dc72164be42f58a6d0468e16 /drivers/net/ethernet/mellanox/mlxsw/core_env.c
parent7d29c9ad0ed525c1b10e29cfca4fb1eece1e93fb (diff)
downloadlinux-2d08f204328acaf85ac2c6fe5d5d9d4760f12e13.tar.xz
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 'drivers/net/ethernet/mellanox/mlxsw/core_env.c')
0 files changed, 0 insertions, 0 deletions