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] [linux-2.6.18-xen] xen suspend: Fix write-after-read err

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen suspend: Fix write-after-read error on fast_suspend flag.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 07:30:55 -0800
Delivery-date: Mon, 03 Mar 2008 07:34:06 -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 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 <=