提交 13562d1f 编写于 作者: X Xi Wang 提交者: David S. Miller

net: hns3: Fix the missing client list node initialization

This patch fixes the missing initialization of the client list node
in the hnae3_register_client() function.

Fixes: 76ad4f0e ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: NXi Wang <wangxi11@huawei.com>
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 99a6993a
...@@ -3509,6 +3509,8 @@ static int __init hns3_init_module(void) ...@@ -3509,6 +3509,8 @@ static int __init hns3_init_module(void)
client.ops = &client_ops; client.ops = &client_ops;
INIT_LIST_HEAD(&client.node);
ret = hnae3_register_client(&client); ret = hnae3_register_client(&client);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册