* [PATCH] PM: check sysdev_suspend(PMSG_FREEZE) return value
@ 2009-05-15 11:33 Bjorn Helgaas
2009-05-15 21:00 ` Pavel Machek
2009-05-15 21:07 ` Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2009-05-15 11:33 UTC (permalink / raw)
To: Rafael J Wysocki, Pavel Machek, Len Brown; +Cc: linux-pm
Check the return value of sysdev_suspend(). I think this was a typo.
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.
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;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] PM: check sysdev_suspend(PMSG_FREEZE) return value
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
1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2009-05-15 21:00 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pm
On Fri 2009-05-15 05:33:49, Bjorn Helgaas wrote:
> Check the return value of sysdev_suspend(). I think this was a typo.
> 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.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
> ---
> 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;
> }
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PM: check sysdev_suspend(PMSG_FREEZE) return value
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
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2009-05-15 21:07 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pm
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;
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-15 21:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox