]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: Fix the missing client list node initialization
authorXi Wang <wangxi11@huawei.com>
Sat, 19 May 2018 15:53:18 +0000 (16:53 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:09 +0000 (14:41 -0400)
BugLink: https://bugs.launchpad.net/bugs/1768670
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>
(cherry picked from commit 13562d1f5e2fbe2cf33b23a00abca3f71264c4ac linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

index 66cbb66b2326fc7a6112cf15472ef82ab6deee1b..701ae5e792191868f76d1b9cae434ba0b2134781 100644 (file)
@@ -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;