ia64/xen-unstable
changeset 14800:87e2174b8a0d
linux: Fix an error path in save/restore code.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Tue Apr 10 20:00:45 2007 +0100 (2007-04-10) |
parents | 380db34694d7 |
children | 5d7fb634ec1a |
files | linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c Tue Apr 10 11:40:43 2007 -0700 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c Tue Apr 10 20:00:45 2007 +0100 1.3 @@ -209,6 +209,8 @@ int __xen_suspend(int fast_suspend) 1.4 if (fast_suspend) { 1.5 xenbus_suspend(); 1.6 err = stop_machine_run(take_machine_down, &fast_suspend, 0); 1.7 + if (err < 0) 1.8 + xenbus_suspend_cancel(); 1.9 } else { 1.10 err = take_machine_down(&fast_suspend); 1.11 }