|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] xen suspend: Fix write-after-read err
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204551417 0
# Node ID 1cf7ba68d855aa86b1c54c34c03fc62571eb5c94
# Parent 8c6d994a3f792cda9c4f61b2c631ddc20ac9c8f0
xen suspend: Fix write-after-read error on fast_suspend flag.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
drivers/xen/core/machine_reboot.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
diff -r 8c6d994a3f79 -r 1cf7ba68d855 drivers/xen/core/machine_reboot.c
--- a/drivers/xen/core/machine_reboot.c Mon Mar 03 11:02:08 2008 +0000
+++ b/drivers/xen/core/machine_reboot.c Mon Mar 03 13:36:57 2008 +0000
@@ -205,7 +205,7 @@ int __xen_suspend(int fast_suspend, void
int __xen_suspend(int fast_suspend, void (*resume_notifier)(void))
{
int err, suspend_cancelled;
- struct suspend suspend = { fast_suspend, resume_notifier };
+ struct suspend suspend;
BUG_ON(smp_processor_id() != 0);
BUG_ON(in_interrupt());
@@ -222,6 +222,9 @@ int __xen_suspend(int fast_suspend, void
if (num_possible_cpus() == 1)
fast_suspend = 0;
+ suspend.fast_suspend = fast_suspend;
+ suspend.resume_notifier = resume_notifier;
+
if (fast_suspend) {
xenbus_suspend();
err = stop_machine_run(take_machine_down, &suspend, 0);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] xen suspend: Fix write-after-read error on fast_suspend flag.,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|