From ccb9d59e682d7bd758457b6d2458365cc68fad7a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 29 Oct 2007 06:28:17 -0700 Subject: PCI: pciserial_resume_one ignored return value of pci_enable_device [PATCH] pciserial_resume_one ignored return value of pci_enable_device Signed-off-by: Dirk Hohndel Acked-by: Alan Cox Acked-by: Jeff Garzik Signed-off-by: Greg Kroah-Hartman --- drivers/serial/8250_pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/serial') diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index 0e357562ce9e..ceb03c9e749f 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c @@ -1986,6 +1986,7 @@ static int pciserial_suspend_one(struct pci_dev *dev, pm_message_t state) static int pciserial_resume_one(struct pci_dev *dev) { + int err; struct serial_private *priv = pci_get_drvdata(dev); pci_set_power_state(dev, PCI_D0); @@ -1995,7 +1996,9 @@ static int pciserial_resume_one(struct pci_dev *dev) /* * The device may have been disabled. Re-enable it. */ - pci_enable_device(dev); + err = pci_enable_device(dev); + if (err) + return err; pciserial_resume_ports(priv); } -- cgit v1.2.1