Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3919264pxj; Mon, 21 Jun 2021 09:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu8uOArRHqOQnBwkPkP+iYbotIBbsjs/Y3K3Cgj4XufzwPe2rLDeBrGUynyf6XXyRuvbwt X-Received: by 2002:aa7:c3d6:: with SMTP id l22mr14490654edr.245.1624292532179; Mon, 21 Jun 2021 09:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292532; cv=none; d=google.com; s=arc-20160816; b=u1D4oWgXChmyZhDKXyAzN12mP462iizfEvqsiVC8/5o+ZtoXfWqpJVpJIOCUchgDFx l0HfPydUUqaSLgRqz9SBBFh65i6qtdRqWk/JAyACExAb9fY9A+BW8AmkMTapVG2RtaRZ ihLSey9QrGKDoBrKCGbYS/FnuH86awWwO+P+NVMt1FWnyC0qCLPK8OhsRewLB4P8AO9w v+yf/8cehfUPRCmQirGZ3hBYNhS5Wvn+50qX5RDyHV2dZ4k2S7/ru0psIUkL+CALUs6d y+76WkbCklI3lrDDrlfRXFcJCxgXxWO8Gy/WFJPQ6xgKOjaJnAy/EQ+BLpXcwDWIdKbd FsGw== 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=TIDPcfwaDbtCG4UibqAXQ6oWXgEfisKomAN+RM7KFmI=; b=t9xK7+zWjASkJ1h1SpFludsLE1N1+u9MwwEtFamg+PqAORiGl3zxbn2/MbTAG8XvFV Ayfn+W5jaySAPW7SI7jRFURrzH4okwquYCqoEffWbFPBeRHxv3zG7cF/bu6zVTwPLanz 3Pg+Y+QN2AGj1IDSwMgB7p8v8vr4/JGXKji/UZik52NEunD6V4bw424IowNfNoJkb5oC Fazl+eQ9/nHIY1cw/aF6IFlfSIi8F39iR0xzF6lbny9mdv2ZI+oPoBILY2Prms3uEHss H7x3+ZydCjQ51uTHiFVGY7x3EcCXP/WqeT5bNUu4p0o3/Z2mmmYbliqif4D8A3p4abse et9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yvp8M7qP; 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 f13si17038771edw.44.2021.06.21.09.21.49; Mon, 21 Jun 2021 09:22:12 -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=Yvp8M7qP; 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 S231490AbhFUQUZ (ORCPT + 99 others); Mon, 21 Jun 2021 12:20:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:40302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhFUQT5 (ORCPT ); Mon, 21 Jun 2021 12:19:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3FA83611C1; Mon, 21 Jun 2021 16:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292262; bh=Hsb2xp0/uc1jy1bAC5NHNdLcYPHbaFHPYGXgaZnsKOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yvp8M7qPuxWvZyd2LYwRnb+9QWVMw0t+3VWZOKGl3XgkhsHbImR2A0BlmJn/24qzy U0AiBE4Wi3v2Bk3oKxzb1sEtazOSgkf9SlIIK3oPnleHur3iZMnY/ReRQhN4/vPPKB yNZITSLg2dVIhfX09wLgxOuiHcIW8si0S7CuMeOc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 25/90] qlcnic: Fix an error handling path in qlcnic_probe() Date: Mon, 21 Jun 2021 18:15:00 +0200 Message-Id: <20210621154904.978405406@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154904.159672728@linuxfoundation.org> References: <20210621154904.159672728@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 cb3376604a676e0302258b01893911bdd7aa5278 ] 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: 451724c821c1 ("qlcnic: aer support") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index f2e5f494462b..3a96fd6deef7 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c @@ -2709,6 +2709,7 @@ err_out_free_hw_res: kfree(ahw); err_out_free_res: + pci_disable_pcie_error_reporting(pdev); pci_release_regions(pdev); err_out_disable_pdev: -- 2.30.2