diff mbox

drivers/media/video/ivtv/ivtvfb.c: prevent reading uninitialized stack memory

Message ID 1284587062.6275.102.camel@dan (mailing list archive)
State Accepted
Headers show

Commit Message

Dan Rosenberg Sept. 15, 2010, 9:44 p.m. UTC
None
diff mbox

Patch

--- linux-2.6.35.4.orig/drivers/media/video/ivtv/ivtvfb.c	2010-08-26 19:47:12.000000000 -0400
+++ linux-2.6.35.4/drivers/media/video/ivtv/ivtvfb.c	2010-09-15 14:16:46.797375399 -0400
@@ -458,6 +458,8 @@  static int ivtvfb_ioctl(struct fb_info *
 			struct fb_vblank vblank;
 			u32 trace;
 
+			memset(&vblank, 0, sizeof(struct fb_vblank));
+
 			vblank.flags = FB_VBLANK_HAVE_COUNT |FB_VBLANK_HAVE_VCOUNT |
 					FB_VBLANK_HAVE_VSYNC;
 			trace = read_reg(IVTV_REG_DEC_LINE_FIELD) >> 16;