From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [PATCH] PM: check sysdev_suspend(PMSG_FREEZE) return value
Date: Fri, 15 May 2009 23:07:08 +0200 [thread overview]
Message-ID: <200905152307.08977.rjw@sisk.pl> (raw)
In-Reply-To: <20090515113349.3659.20040.stgit@bob.kio>
On Friday 15 May 2009, Bjorn Helgaas wrote:
> Check the return value of sysdev_suspend(). I think this was a typo.
Yes, it was, good catch!
I'm going to push that to Linus for .30.
> Without this change, the following "if" check is always false.
> I also changed the error message so it's distinguishable from the
> similar message a few lines above.
Thanks,
Rafael
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> ---
> kernel/power/disk.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/power/disk.c b/kernel/power/disk.c
> index 2616832..6674722 100644
> --- a/kernel/power/disk.c
> +++ b/kernel/power/disk.c
> @@ -242,9 +242,9 @@ static int create_image(int platform_mode)
>
> local_irq_disable();
>
> - sysdev_suspend(PMSG_FREEZE);
> + error = sysdev_suspend(PMSG_FREEZE);
> if (error) {
> - printk(KERN_ERR "PM: Some devices failed to power down, "
> + printk(KERN_ERR "PM: Some system devices failed to power down, "
> "aborting hibernation\n");
> goto Enable_irqs;
> }
>
prev parent reply other threads:[~2009-05-15 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 11:33 [PATCH] PM: check sysdev_suspend(PMSG_FREEZE) return value Bjorn Helgaas
2009-05-15 21:00 ` Pavel Machek
2009-05-15 21:07 ` Rafael J. Wysocki [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=200905152307.08977.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=bjorn.helgaas@hp.com \
--cc=linux-pm@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox