]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (4862): Fixes uninitialized variables passed to VIDIOC_G_FBUF.
authoraudetto@tiscali.it <audetto@tiscali.it>
Mon, 20 Nov 2006 21:27:44 +0000 (18:27 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 11:05:01 +0000 (09:05 -0200)
Signed-off-by: Andrea A Odetti <audetto@tiscali.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l1-compat.c

index 701856e6adbf2df38ec974bcec39c63df941b97b..8a13e595304e59a479d3229d07f4db20a1d31b7c 100644 (file)
@@ -350,6 +350,7 @@ v4l_compat_translate_ioctl(struct inode         *inode,
                struct video_buffer     *buffer = arg;
 
                memset(buffer, 0, sizeof(*buffer));
+               memset(&fbuf2, 0, sizeof(fbuf2));
 
                err = drv(inode, file, VIDIOC_G_FBUF, &fbuf2);
                if (err < 0) {
@@ -616,6 +617,7 @@ v4l_compat_translate_ioctl(struct inode         *inode,
        case VIDIOCSPICT: /*  set tone controls & partial capture format  */
        {
                struct video_picture    *pict = arg;
+               memset(&fbuf2, 0, sizeof(fbuf2));
 
                set_v4l_control(inode, file,
                                V4L2_CID_BRIGHTNESS, pict->brightness, drv);