Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934695AbcKWW65 (ORCPT ); Wed, 23 Nov 2016 17:58:57 -0500 Received: from mail.kernel.org ([198.145.29.136]:60502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933488AbcKWW6z (ORCPT ); Wed, 23 Nov 2016 17:58:55 -0500 Date: Wed, 23 Nov 2016 16:58:51 -0600 From: Bjorn Helgaas To: Quentin Lambert Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] PCI Hotplug: cpqphp: Add missing call to pci_disable_device Message-ID: <20161123225851.GJ16033@bhelgaas-glaptop.roam.corp.google.com> References: <20161119174148.20187-1-lambert.quentin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161119174148.20187-1-lambert.quentin@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 31 On Sat, Nov 19, 2016 at 06:41:48PM +0100, Quentin Lambert wrote: > Most error branches following the call to pci_enable_device contain > a call to pci_disable_device. This patch add these calls where they are > missing. > > This issue was found with Hector. > > Signed-off-by: Quentin Lambert Applied to pci/hotplug for v4.10, thanks, Quentin! > --- > drivers/pci/hotplug/cpqphp_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > --- a/drivers/pci/hotplug/cpqphp_core.c > +++ b/drivers/pci/hotplug/cpqphp_core.c > @@ -867,7 +867,8 @@ static int cpqhpc_probe(struct pci_dev * > */ > if ((pdev->revision <= 2) && (vendor_id != PCI_VENDOR_ID_INTEL)) { > err(msg_HPC_not_supported); > - return -ENODEV; > + rc = -ENODEV; > + goto err_disable_device; > } > > /* TODO: This code can be made to support non-Compaq or Intel > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html