diff mbox

xenfb: fix xenfb suspend/resume race.

Message ID 4D26E82D.1060204@oracle.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Joe Jin Jan. 7, 2011, 10:17 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index dc72563..f2d9eb5 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -616,6 +616,8 @@  static int xenfb_connect_backend(struct xenbus_device *dev,
 
 static void xenfb_disconnect_backend(struct xenfb_info *info)
 {
+	/* Prevent xenfb refresh */
+	info->update_wanted = 0;
 	if (info->irq >= 0)
 		unbind_from_irqhandler(info->irq, info);
 	info->irq = -1;