Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3677523pxv; Mon, 26 Jul 2021 09:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymFqlHmkzbSgeagbNwR2cZpO0StvCwPZJ1FkmKLcMrtIm2dEQ/qsmx37BdYM6joud4LCA4 X-Received: by 2002:a05:6402:13c3:: with SMTP id a3mr22271699edx.187.1627315979881; Mon, 26 Jul 2021 09:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315979; cv=none; d=google.com; s=arc-20160816; b=XLgtTNcAnEXhhjZEY5qozboAOVxcDesgvEgDPIz7TQAlgh61glbEktbngP/ztSwRC4 oCp0Pzr52VUCSNkT4vJ/7QdXx/nTcN6Jy/W14chOyW9acNnIjCiZUoiTEN8GRCMLRA2m /7CHCK4yQio6yh8uzbRwKN233mei1R4OfE4ITYfmNQ3JfGVewmE8LlgOyPjaY6CJhWWJ 6ZYTu5H8K01cgV0b8B34OZ267W5E89bGQR6lv9+0w8Qcuv2r45sBIWxG0+uThgoK7ETG zxvj9vk9qaEo4icLkA1C5Yp2Kqbhnez0d3Smbr2lV9IMbdvwL6ral90opPmqsIWavzSm sQdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EBQD3uU78JIwvvFcu8H8GX+ZDcPD/3G2pBGEN02DPFk=; b=E5PrC+RQEvf5m4zbirKdahe5X3vQSyw1GZR/Y89RpEPa8/MQWhkHCWDRgtL6JaGxLk XVNDUD6m4AXOitk3/DAImKFOaJHSkyO1Rq43fW/m/mHF9OslD80eTE1xl7HDJl8cuUkN G12B31qE8CBfIppvHHkappgMSuA1CxzZkbjDZlOo0I12vXr18Ak6MrOa+/t19Z6jrvgN 6mNXTP2LHEphk7XgRe4faOfmHKusOXjDaBLs8nc0uFMRzjuljlBqv1YCF6aN+NsfFboh +OfppqnDwDvIA+n61hEfnmzgJOWf1RggFeXScMpJsPDolYWcnkNQ7gJBtDNoBGlexgYc RvUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tafWfdLO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l27si286226eja.265.2021.07.26.09.12.36; Mon, 26 Jul 2021 09:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tafWfdLO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237804AbhGZPZq (ORCPT + 99 others); Mon, 26 Jul 2021 11:25:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237399AbhGZPPn (ORCPT ); Mon, 26 Jul 2021 11:15:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F08B60F92; Mon, 26 Jul 2021 15:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314893; bh=5Z+FGXzvX7NyVzTw13+n9i5O0wtdzhQh0AKrX2uX1lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tafWfdLOinBaB6t+9wlOg0JObqkUiHS7SlHwxCmS7yUY3s7MBstF+g0Opwz88vyI2 v+0rQhFIK+bQpJ0R+8nq285NkGMCr4aeXa9qXlaC6HzIqIdC5XUj2RxVDRpiOeQyC0 lske8XTjaS+Jyz0oGPzAdrYfD12tAdlHy1ZOLatk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Tony Nguyen , Sasha Levin Subject: [PATCH 5.4 010/108] iavf: Fix an error handling path in iavf_probe() Date: Mon, 26 Jul 2021 17:38:11 +0200 Message-Id: <20210726153832.033632387@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit af30cbd2f4d6d66a9b6094e0aa32420bc8b20e08 ] If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it must be undone by a corresponding 'pci_disable_pcie_error_reporting()' call, as already done in the remove function. Fixes: 5eae00c57f5e ("i40evf: main driver core") Signed-off-by: Christophe JAILLET Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/iavf/iavf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index a97e1f9ca1ed..cda9b9a8392a 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3765,6 +3765,7 @@ static int iavf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err_ioremap: free_netdev(netdev); err_alloc_etherdev: + pci_disable_pcie_error_reporting(pdev); pci_release_regions(pdev); err_pci_reg: err_dma: -- 2.30.2