# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID 01f3c63f0343051ce1cc039b4bd38def61eb3def
# Parent  ef51ca28a1fc1e49299f0492194f921a309abc64
[XEN][POWERPC] set NULL to shared in gnttab_suspend.

Signed-off-by: Yi Ge <[EMAIL PROTECTED]>
Signed-off-by: Dan E Poff <[EMAIL PROTECTED]>
Signed-off-by: Jimi Xenidis <[EMAIL PROTECTED]>
---
 drivers/xen/core/gnttab.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r ef51ca28a1fc -r 01f3c63f0343 drivers/xen/core/gnttab.c
--- a/drivers/xen/core/gnttab.c Fri Nov 10 18:49:48 2006 -0500
+++ b/drivers/xen/core/gnttab.c Sat Nov 11 10:25:31 2006 -0500
@@ -426,7 +426,9 @@ int gnttab_suspend(void)
 int gnttab_suspend(void)
 {
 #ifdef CONFIG_PPC_XEN
-       return arch_gnttab_suspend(shared);
+       int ret = arch_gnttab_suspend(shared);
+       shared = NULL;
+       return ret;
 #else
 #if !defined(__ia64__)
        apply_to_page_range(&init_mm, (unsigned long)shared,

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to