Received: by 10.213.65.68 with SMTP id h4csp1793782imn; Mon, 19 Mar 2018 13:26:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELu4CS1efKZgr2BHFg5iNU4zJ0qAX9p6i8irjNY1zJiyhB9p0JGxyBv4M4cZPUz79j0hvWpR X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr13922191plo.74.1521491187654; Mon, 19 Mar 2018 13:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521491187; cv=none; d=google.com; s=arc-20160816; b=IR5wkScoL+2zFYWWEpZ88q0ymfmWEbkB+81CWdgUziQcbHrtoV24KaMw3B9dOzPDch nYAs82s+mCdWA8Lqb3eReHENKhiU2DT1RENlQmpeSZ7lRPTdLu9suPegmfGnaSXgh5bz vpUMxOfdZnsnLqii3vP/aF1nSC7TOMqIjLbSqkA5IkbnVX2UzUOkuOddEkm3bXCRdkHJ 9/PYGV71q/czL0L1W7rnJuPCiEM3/KSMjwPQVVxSCddytAtUIenbxgErU/4hnLy5/KPM Rg4Hq4qbJI2DkkLVa3uIgLTnw5BpfR4fYWzk7mFjLHgvkGxQ5H17se7wVmFaGAWK97lM G86A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vpG+YeKEEFQPGiUekxBLNiAlTdMF9+7IGvsO+FYBAKE=; b=HJVFT9wubrKOoRv9/TQx9UoETBMS2JBSLm5Fc1WDAb+y9Hi49SjvPXVzoDIr8yMTuj NcJ1baoseRYlT6NCsiSWfoKmsfvOKe5sQRvAyrDtVSDlN6zJPGKtNblllfrKMG4zPuzt 8PXS33jj6Meck8WL4FYiNuKvrvnwNv67QY+cNk8qM6mSkvP9LY+o01MK3k4eQ9Nbt3Y/ evfAUcRa/YbtdGSTEbQD5AyphHelWVo2gxhak+kyaEzg4o/sRrNzbW1DaEfHxrItKTzI rHIN2Yv0M6BzKOYxUP3ftRx5FWJZjCwbUcCaW4Rxa9+361yersAWLjsLeu6aDp1M3KJo Hhpg== 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 z7si3878pge.522.2018.03.19.13.26.13; Mon, 19 Mar 2018 13:26:27 -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 S1031490AbeCSUYj (ORCPT + 99 others); Mon, 19 Mar 2018 16:24:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44002 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030647AbeCSSOH (ORCPT ); Mon, 19 Mar 2018 14:14:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C4196EF6; Mon, 19 Mar 2018 18:14:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Phil Turnbull , Krishneil Singh , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.4 054/134] fm10k: correctly check if interface is removed Date: Mon, 19 Mar 2018 19:05:37 +0100 Message-Id: <20180319171857.167281647@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Phil Turnbull [ Upstream commit 540fca35e38d15777b310f450f63f056e63039f5 ] FM10K_REMOVED expects a hardware address, not a 'struct fm10k_hw'. Fixes: 5cb8db4a4cbc ("fm10k: Add support for VF") Signed-off-by: Phil Turnbull Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c @@ -983,7 +983,7 @@ static void fm10k_self_test(struct net_d memset(data, 0, sizeof(*data) * FM10K_TEST_LEN); - if (FM10K_REMOVED(hw)) { + if (FM10K_REMOVED(hw->hw_addr)) { netif_err(interface, drv, dev, "Interface removed - test blocked\n"); eth_test->flags |= ETH_TEST_FL_FAILED;