summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorXi Wang <wangxi11@huawei.com>2018-05-19 16:53:18 +0100
committerDavid S. Miller <davem@davemloft.net>2018-05-20 18:53:59 -0400
commit13562d1f5e2fbe2cf33b23a00abca3f71264c4ac (patch)
tree7c227104f997af5bc1f3a421b38a9d1369e34a53 /drivers/net
parent99a6993a6933acbf791d1c7bb789e0ebe5bd7127 (diff)
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: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Xi Wang <wangxi11@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3_enet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 66cbb66b2326..701ae5e79219 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
@@ -3509,6 +3509,8 @@ static int __init hns3_init_module(void)
client.ops = &client_ops;
+ INIT_LIST_HEAD(&client.node);
+
ret = hnae3_register_client(&client);
if (ret)
return ret;