DORMANTno replies

[PATCH] softcursor fix for PM

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-02-10 10:39:06

diff -urN fbdev-2.5/drivers/video/softcursor.c linuxppc-2.5-benh/drivers/video/softcursor.c
--- fbdev-2.5/drivers/video/softcursor.c	2004-02-10 21:15:18.000000000 +1100
+++ linuxppc-2.5-benh/drivers/video/softcursor.c	2004-02-10 21:06:24.000000000 +1100
@@ -62,7 +62,10 @@
 
 	if (cursor->set & FB_CUR_SETSHAPE)
 		fb_load_cursor_image(info);
-		
+
+	if (info->state != FBINFO_STATE_RUNNING)
+		return 0;
+
 	if (!cursor->enable || (info->cursor.enable && (cursor->set & FB_CUR_SETPOS))) {
 		if (needsync && info->fbops->fb_sync) {
 			info->fbops->fb_sync(info);




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help