WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] xen suspend: Fix write-after-read erro

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] xen suspend: Fix write-after-read error on fast_suspend flag.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 10:10:31 -0800
Delivery-date: Mon, 03 Mar 2008 10:10:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] xen suspend: Fix write-after-read error on fast_suspend flag., Xen patchbot-3.1-testing <=