linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] modedb: fix incorrect sync and vmode flags for CVT modes
@ 2008-05-28 20:49 Krzysztof Helt
  2008-05-28 20:56 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Helt @ 2008-05-28 20:49 UTC (permalink / raw)
  To: Linux-fbdev-devel; +Cc: Andrew Morton

From: Krzysztof Helt <krzysztof.h1@wp.pl>

The temporary structure for calculated CVT mode
is not initialized. Few fields have only bits or-ed
or and-ed so they may be left in incorrect (random) state.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>

---
It would be good to have this fix in 2.6.26.

Testing of the tridentfb seems like a good exercise
for the fbdev layer.

diff -urp linux-2.6.25/drivers/video/modedb.c linux-new/drivers/video/modedb.c
--- linux-2.6.25/drivers/video/modedb.c	2008-05-27 21:57:38.644359809 +0200
+++ linux-new/drivers/video/modedb.c	2008-05-28 22:40:26.149499108 +0200
@@ -590,6 +590,7 @@ done:
 		    "", (margins) ? " with margins" : "", (interlace) ?
 		    " interlaced" : "");
 
+	    memset(&cvt_mode, 0, sizeof(struct fb_videomode));
 	    cvt_mode.xres = xres;
 	    cvt_mode.yres = yres;
 	    cvt_mode.refresh = (refresh) ? refresh : 60;

----------------------------------------------------------------------
Tanie rozmowy!
Sprawdz >>> http://link.interia.pl/f1e13  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-28 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 20:49 [PATCH] modedb: fix incorrect sync and vmode flags for CVT modes Krzysztof Helt
2008-05-28 20:56 ` Andrew Morton
2008-05-28 21:48   ` Krzysztof Helt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).