Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5753608imm; Sat, 19 May 2018 08:55:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqDAafox94tf5gAsAtFovOopq0ip/mln2ZRSaq4DNi7vb1oGDRRrzIZ2uzzB/IXwWE4wayA X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr14384219plg.38.1526745333106; Sat, 19 May 2018 08:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526745333; cv=none; d=google.com; s=arc-20160816; b=YcpR+g0YTbcNP0Ntj8haX5SlklcHh8Jad81eeMcno4K90kN6ta2YCJm5C4bPXyo3pc PPDY2EMC9ZqmAIBFxWVKgGiAPICM+7D77+bWAgwBLxT8oSXchmqoAlNCKA6kMNnabEpR AJZoi8OnmZFB14MLKUpFGmHCFdfWyzBK6QHnvzpAEsmB/hUBzRAP2C/DV2WJRYnploKv YfhkNwcQZ2Ln8o47Wg/ksTBawyc2+pXctLoJIwUMgVEzhY28Biiwn7VxEehjnJ7oh1iY 9O1x67yJOjE2e0fSCYC1qECbKotC/NUZc06xJqN2Ai5OA7sIzU7Q32d8sOrmFJxvO8Jw MGpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=BbXwrwd8dig00aJgJ8wmUb6bxqX70p4BY0SuCGKyA/A=; b=v4MQ/jO21ozM2crHPbEpD0g6NDik8ZR/M2TT+D1PaxwSayR8SloSibWiO1kHFnI/YL 54E8djpqopsO4AO/6+nzbme7vuywU1ZTXHektjr4z5IYt738Gne9Jcs1fcVP/zY89QMV 4BG9HlvydO+1pffNttwJr4kCKBL1uiRj9aPkczxwd3TlF1KA7AVGcwGFmTmcJVWyGGcR QA1T5TM/JMNYE6gtrSOJB8WOse9TAX1OZgJ2sIhaHj0hCAdM+cbZcJjjOv3BNWO7iKlE sKowY2ensM8pxM+oWmsep6rGPmlW7Vs7JfIvJatqJntJl7J1Nxj03t/8gQyXFxsuBVlY AoXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si8014257pgc.537.2018.05.19.08.55.19; Sat, 19 May 2018 08:55:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbeESPyr (ORCPT + 99 others); Sat, 19 May 2018 11:54:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:39213 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752489AbeESPyj (ORCPT ); Sat, 19 May 2018 11:54:39 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1FA4E917D112; Sat, 19 May 2018 23:54:33 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.227.234) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.382.0; Sat, 19 May 2018 23:54:26 +0800 From: Salil Mehta To: CC: , , , , , , , Xi Wang Subject: [PATCH net-next 4/9] net: hns3: Fix the missing client list node initialization Date: Sat, 19 May 2018 16:53:18 +0100 Message-ID: <20180519155323.68960-5-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180519155323.68960-1-salil.mehta@huawei.com> References: <20180519155323.68960-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.227.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xi Wang 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 --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 66cbb66..701ae5e 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; -- 2.7.4