[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.1-testing] xen suspend: Fix write-after-read error on fast_suspend flag.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1204551666 0 # Node ID e36b867f06fd2f24373ea51ef7e819c229b9f001 # Parent b90c2ee9fd3d948c664aa9f54543e8b98feeb38e xen suspend: Fix write-after-read error on fast_suspend flag. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> linux-2.6.18-xen changeset: 465:1cf7ba68d855aa86b1c54c34c03fc62571eb5c94 linux-2.6.18-xen date: Mon Mar 03 13:36:57 2008 +0000 --- linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r b90c2ee9fd3d -r e36b867f06fd linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c --- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c Sat Mar 01 10:36:30 2008 +0000 +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c Mon Mar 03 13:41:06 2008 +0000 @@ -204,7 +204,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()); @@ -221,6 +221,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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |