Skip to content

Commit

Permalink
net: hns3: Fix the missing client list node initialization
Browse files Browse the repository at this point in the history
This patch fixes the missing initialization of the client list node
in the hnae3_register_client() function.

Fixes: 76ad4f0 ("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>
  • Loading branch information
Xi Wang authored and David S. Miller committed May 20, 2018
1 parent 99a6993 commit 13562d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 13562d1

Please sign in to comment.