From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: [PATCH 27/27] serial_8250: pci_enable_device fail is not fully handled Date: Fri, 10 Oct 2008 11:52:00 +0100 Message-ID: <20081010105135.31597.44955.stgit@localhost.localdomain> References: <20081010103447.31597.42992.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:47625 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760116AbYJJKwE (ORCPT ); Fri, 10 Oct 2008 06:52:04 -0400 In-Reply-To: <20081010103447.31597.42992.stgit@localhost.localdomain> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: torvalds@osdl.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org talking about leaks - I noticed that the 'check return of pci_enable_dev()' in the 8250 pci resume function finally made it in, inspite my objections against it (causing stuff in higher levels to leak). Signed-off-by: Alan Cox --- drivers/serial/8250_pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index c2f2393..c014ffb 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c @@ -2041,9 +2041,9 @@ static int pciserial_resume_one(struct pci_dev *dev) * The device may have been disabled. Re-enable it. */ err = pci_enable_device(dev); + /* FIXME: We cannot simply error out here */ if (err) - return err; - + printk(KERN_ERR "pciserial: Unable to re-enable ports, trying to continue.\n"); pciserial_resume_ports(priv); } return 0;