From: Xi Wang Date: Sat, 19 May 2018 15:53:18 +0000 (+0100) Subject: net: hns3: Fix the missing client list node initialization X-Git-Tag: v4.18-rc1~114^2~187^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=13562d1f5e2fbe2cf33b23a00abca3f71264c4ac;p=users%2Fhch%2Fdma-mapping.git 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 Signed-off-by: Peng Li Signed-off-by: Salil Mehta Signed-off-by: David S. Miller --- 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;