Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3937059pxj; Mon, 21 Jun 2021 09:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq0EgP0O+B33mD40e+YLvM5mjBSiRTzjs5JzwC+xqZMTGuAkCvBIiwwnGpiVetqgfsz4+v X-Received: by 2002:a6b:7009:: with SMTP id l9mr12362919ioc.82.1624293914433; Mon, 21 Jun 2021 09:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293914; cv=none; d=google.com; s=arc-20160816; b=zFzor/RXALxRjUJOn+v/BUSgi1m3pJVRtqfQj79dZ/zlYwuYHmHB1tzH6qMIftkA0H yMyWndppB4TUOTNAiWgd/xuvXUZE11He1cfTK1goa7vJZlgwIRyk8z/3YbrcfFGvfOuf i9YZ9FvCgBUTadQNklvmC9fYb4mkH/5LY9b6aDGEeLvlEHL/Ikn7YZeA2xBbkihHqYnH wGgfjaMB0VflCiGiyOMQga80PcJxrKhu5d3kurGTkTIZh+J0h6Dk2PaADcLcn0eh0FcE vgYG2SLw1cmqHC2fTVmDmhRUidpNIQiYlUSqqnvvewZtIdn/tgkQQ+qeDIZBnCduyDJW 4T8A== 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=ldvzL4wAOXnViMQA0i5LFEAK02GGyG5bJRL8bvS77Xs=; b=xJU1Wo90m79dveqByGceVP5vKPfTKZNBqtSX4ZDJG3C1kOErA670IO7CxVMl9DuuIy 29AowZK73YYWJ4nvOwerkjeSZ2o0yB69Zdyn6ToCX74lVGsdpoJFSND1VnaxgENa+FxO 2yfADW9W0yL3X4xLDg96LyGtTlYUVdWZrOXPZr9MK+pBfjqzRZ7W8fXBiDsETS1leas6 UX0XEda6zngEVRcqyOZtVgPmXbhkAF+/17iu8p0gXXETOklR6mrIYOBiH8SevCBBEf+4 fdZ1ExtEWJnpYiaAKr9pyz6AQ3BxqewLPL4gHd8vYxdTfZvcW2cRbVFZvbrlHzBFOED4 p9CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="s3wmqbB/"; 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 m1si11851658ilj.142.2021.06.21.09.45.01; Mon, 21 Jun 2021 09:45:14 -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="s3wmqbB/"; 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 S231460AbhFUQqk (ORCPT + 99 others); Mon, 21 Jun 2021 12:46:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:33896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232866AbhFUQld (ORCPT ); Mon, 21 Jun 2021 12:41:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5198C61446; Mon, 21 Jun 2021 16:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293048; bh=GqYI+YEGe0esiZQFzMXv1mVbQ3gk6u85ZRuilzyHYx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s3wmqbB/ALKxKbGyJ0Ki9jNJhaOC73oSb7/OA6cSpgGXffNNX0Ja0k1ufestgBS64 vF7W/5x4PnXSzyPD3intqkCyEevqm7xZVvijIQQ3OD1txbCCnmAp0SkJEMnSEZVG3K D/ejXP9dXhnyFyeNny6Remuhg7CGckU4POCZJkPM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Somnath Kotur , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 079/178] be2net: Fix an error handling path in be_probe() Date: Mon, 21 Jun 2021 18:14:53 +0200 Message-Id: <20210621154925.298966694@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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 c19c8c0e666f9259e2fc4d2fa4b9ff8e3b40ee5d ] 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: d6b6d9877878 ("be2net: use PCIe AER capability") Signed-off-by: Christophe JAILLET Acked-by: Somnath Kotur Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/emulex/benet/be_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index b6eba29d8e99..7968568bbe21 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -5897,6 +5897,7 @@ drv_cleanup: unmap_bars: be_unmap_pci_bars(adapter); free_netdev: + pci_disable_pcie_error_reporting(pdev); free_netdev(netdev); rel_reg: pci_release_regions(pdev); -- 2.30.2