Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1367861ybi; Fri, 2 Aug 2019 14:17:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH7tsgg3wW2VEZ0DVQbV4c8C8gv13Pl8RJa+SaTfR511YqiAgqOKyaRQIH94CxXJeLC/NY X-Received: by 2002:aa7:8392:: with SMTP id u18mr62051408pfm.72.1564780649861; Fri, 02 Aug 2019 14:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564780649; cv=none; d=google.com; s=arc-20160816; b=NCOqpZKnZhMDzuMBrxTB0IY+YF4wPLkkQ+u5Wp/FccspM5eIMSoo8T8nhNArvupMkJ SjI1ia76FBFqvFCqt4RLR2I4pRVUVgmfValpEUATbPzdBuLItAsdvCKjm5MGlbfTw+QP Aqjn4VLq7qy/hJStk3sLBTVWrPKYz5y1pbfgYkkPGYoc4uOCfAQmPhnJkmJurVo3DbuW O4lH3GEJ/HCH6Q6AQNLZDlU0nhIwifOIkS0epZ0xqlmAHYC/hMgB9UcND2xma35A85Yp 6H11RYmAg5T9xnHje1PoUDC2if1PsXva8b5SAaPGE95Tnqsws72JqndStytnbxnkwOgC zK5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=DIqOI2KhnovE2Wnn/sL/EUNF3A52jl9llVbTYD86JMc=; b=uPEdlGCg2nruvIEvx5FUptw9FUvyp5YkcNSU/a05ofMr9Ze6XMUjwqtXYqT9O+oLYQ PQVTtzCDvCbD1F/l85SoRLDSnAyaYUXxINr4W3yfkK5XRaPqGYHfX14NhamO7+pzqtc6 15J4kQebJBpCBxmmTo3FNc3bMQxW96RD8RC9pJP/wW59ANQZ6O5CIa3qZhCOjJwF9ybc BOHI/wbbBsG0xBspEdmMMMrLrsLSM7XhNaMaAZeL4WZe9IdyfL4qVkFfVTsqc+EkNvrD h1unSFx2iNk3a5OsZeIDGGqvH2RhZ93nve4PSlfjA0dtU21ak7pMwjyCriRPzwD2ezxD sj1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=srMJDRVV; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b123si40501385pfa.14.2019.08.02.14.17.14; Fri, 02 Aug 2019 14:17:29 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=srMJDRVV; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733139AbfHBKzH (ORCPT + 99 others); Fri, 2 Aug 2019 06:55:07 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44789 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbfHBKzH (ORCPT ); Fri, 2 Aug 2019 06:55:07 -0400 Received: by mail-pg1-f196.google.com with SMTP id i18so35890968pgl.11; Fri, 02 Aug 2019 03:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DIqOI2KhnovE2Wnn/sL/EUNF3A52jl9llVbTYD86JMc=; b=srMJDRVV8ygDsohT0GoVuEcKCpACjwtqHx6wxeRhf8dlMqfZgWenGwR3OhfdebtaPn 7KxUDWtnLUEjat1S8i1wsaYqGkjsrj7IWyhKZIGULZ/jnwjvLkhBk26tdtqCyYyZa89y cWRKBS2/4Soe06tTBS0S93QKwqcgm4ECGKhzpNLxGGBnSyfwe4TOtp35XknKVbTjjVSI pmMurfmHTPw37WouScJHwO65WdJmWZ5Lr3Zi9f0eIU9L2SHkrSGRMVSVG3+WFcZHeP+U Q9TF4i/8l7KWsIoQLSolkikbA13CHToGCC9S6MNnN+0X0dYBBxzu6uPISFglsMMc2B4A /5ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DIqOI2KhnovE2Wnn/sL/EUNF3A52jl9llVbTYD86JMc=; b=oQm3yDGaCfnDNGZ93ItYTDfMeUorhCyAADkaFTFYD7xDhWpmiYMyDwWjN1oX3sKqcK RftIeUw6677P4/AZEKJcF8kNNPjUyVa0O9fR3Jf8G+f8Ed/huHg90hWKAbQoYAUXl9VV xf5Hcr7nbnEmdh1SI3PLce8+2BxlFdZdpEAT6RxFgRYYQNHwejmnu08sXdNuH1vfqBZz y820ViAJ50Z2PfP4LvtvETV43FHrJy0b1t5+kBGhCi84Xm/cpS5AIOCkdM8ZpxCOmgSN JR1zf4IlyLQyM5yLCYwZdH9WZRKxnET1k9zfGUc9xrUYc1v8qkGSuNaW5tODPJYGplhM NutQ== X-Gm-Message-State: APjAAAVpsixkP4Y2i1QhxyiC6pOLArb6BzD2vaeXrPE7rV8SEH3J+6PN hAyY3ufagsbYoiTk9uzkgBc= X-Received: by 2002:a63:b555:: with SMTP id u21mr125832838pgo.222.1564743306326; Fri, 02 Aug 2019 03:55:06 -0700 (PDT) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([89.31.126.54]) by smtp.gmail.com with ESMTPSA id q69sm10647674pjb.0.2019.08.02.03.55.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 03:55:05 -0700 (PDT) From: Chuhong Yuan Cc: Jeff Kirsher , "David S . Miller" , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH 1/2] ixgbe: Explicitly initialize reference count to 0 Date: Fri, 2 Aug 2019 18:54:57 +0800 Message-Id: <20190802105457.16596-1-hslester96@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver does not explicitly call atomic_set to initialize refcount to 0. Add the call so that it will be more straight forward to convert refcount from atomic_t to refcount_t. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c index ccd852ad62a4..00710f43cfd2 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c @@ -773,6 +773,7 @@ int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter) fcoe->extra_ddp_buffer = buffer; fcoe->extra_ddp_buffer_dma = dma; + atomic_set(&fcoe->refcnt, 0); /* allocate pci pool for each cpu */ for_each_possible_cpu(cpu) { -- 2.20.1