Skip to contentSkip to conversation

pm2fb: X and VT switching crash fix

PATCH In review Antonino A. Daplas 1 participant 1 message Mar 13, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

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

From Jim Hague:

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

---

 pm2fb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/video/pm2fb.c +1 -1
diff -Nru a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
@@ -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