DORMANTno replies

[PATCH 4/6] pm2fb: X and VT switching crash fix

From: Antonino A. Daplas <hidden>
Date: 2005-03-13 00:36:23

  From Jim Hague:

  This is a bug in pm2fb.c exposed by recent changes to fbcon.

Signed-off-by: Antonino Daplas <redacted>
---

 pm2fb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
--- a/drivers/video/pm2fb.c	2005-03-12 23:23:18 +08:00
+++ b/drivers/video/pm2fb.c	2005-03-11 22:32:03 +08:00
@@ -747,7 +747,7 @@
 	}
 	if ((info->var.vmode & FB_VMODE_MASK)==FB_VMODE_DOUBLE)
 		video |= PM2F_LINE_DOUBLE;
-	if (info->var.activate==FB_ACTIVATE_NOW)
+	if ((info->var.activate & FB_ACTIVATE_MASK)==FB_ACTIVATE_NOW)
 		video |= PM2F_VIDEO_ENABLE;
 	par->video = video;
 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help