From patchwork Sat May 19 15:53:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 136396 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2545798lji; Sat, 19 May 2018 08:54:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpy5oMHoHrl3GBPdiZGp48ld7eeg980t7HyPhVWc94QCcwlD7i96cIM77vOpcVuZ8Fu1hOe X-Received: by 2002:a63:7043:: with SMTP id a3-v6mr10801073pgn.206.1526745290097; Sat, 19 May 2018 08:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526745290; cv=none; d=google.com; s=arc-20160816; b=uMUqumTndY9jJw7HGnmX9yk7Apnx6uiLnR+218yj7yHrs2CRh/GvVq+04kZWXDQQl6 Ik0Yc27bVnUntxwi4wfnSQ6ZB+lG2eeYX2senNmjyqhnhdUjFkVXTm1ZBHTdwFMNzQVY taotV4veODpmDh7YEHpIDJyGMANrqVTqydgxQt6SbxVhEOsgXZ4bbf5uAlhFNEEK6TTu fe3urUrk8t9fyaeHNO0Ku81Q8pUcFr6bcyKsoFcLOE/RfHk5PGa2OU+j2r0+rhkXyu/b nW91AU11htlQHERDL+C0KMLCkGldauwyLhVDihN+spVWhi+Bfrgo/hl86HRu4WwJcvHU BTIA== 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 b7-v6si7851720pgq.585.2018.05.19.08.54.49; Sat, 19 May 2018 08:54:50 -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 S1752579AbeESPyr (ORCPT + 29 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 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(+) -- 2.7.4 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;