From: Jeff Garzik <jeff@garzik.org>
To: Dirk Hohndel <hohndel@linux.intel.com>
Cc: Greg KH <gregkh@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pciserial_resume_one ignored return value of pci_enable_device
Date: Mon, 29 Oct 2007 10:46:44 -0400 [thread overview]
Message-ID: <4725F254.700@garzik.org> (raw)
In-Reply-To: <20071029132817.GA20449@bigserver.hohndel.org>
Dirk Hohndel wrote:
> [PATCH] pciserial_resume_one ignored return value of pci_enable_device
>
> Signed-off-by: Dirk Hohndel <hohndel@linux.intel.com>
>
> ---
> drivers/serial/8250_pci.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c
> index 0e35756..ceb03c9 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;
ACK
prev parent reply other threads:[~2007-10-29 14:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 13:28 [PATCH] pciserial_resume_one ignored return value of pci_enable_device Dirk Hohndel
2007-10-29 13:50 ` Alan Cox
2007-10-29 14:46 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4725F254.700@garzik.org \
--to=jeff@garzik.org \
--cc=gregkh@suse.de \
--cc=hohndel@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.