diff options
author | audetto@tiscali.it <audetto@tiscali.it> | 2006-11-20 16:27:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 06:05:01 -0500 |
commit | 499c18698990463b84c23ddc98104517fe759ee8 (patch) | |
tree | 3a6d63605c294279b33ee017f4856926158594c7 | |
parent | e75f9cee32827853fc2f9d1ceb6352e3edc33e9d (diff) |
V4L/DVB (4862): Fixes uninitialized variables passed to VIDIOC_G_FBUF.
Signed-off-by: Andrea A Odetti <audetto@tiscali.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/v4l1-compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index 701856e6adbf..8a13e595304e 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c | |||
@@ -350,6 +350,7 @@ v4l_compat_translate_ioctl(struct inode *inode, | |||
350 | struct video_buffer *buffer = arg; | 350 | struct video_buffer *buffer = arg; |
351 | 351 | ||
352 | memset(buffer, 0, sizeof(*buffer)); | 352 | memset(buffer, 0, sizeof(*buffer)); |
353 | memset(&fbuf2, 0, sizeof(fbuf2)); | ||
353 | 354 | ||
354 | err = drv(inode, file, VIDIOC_G_FBUF, &fbuf2); | 355 | err = drv(inode, file, VIDIOC_G_FBUF, &fbuf2); |
355 | if (err < 0) { | 356 | if (err < 0) { |
@@ -616,6 +617,7 @@ v4l_compat_translate_ioctl(struct inode *inode, | |||
616 | case VIDIOCSPICT: /* set tone controls & partial capture format */ | 617 | case VIDIOCSPICT: /* set tone controls & partial capture format */ |
617 | { | 618 | { |
618 | struct video_picture *pict = arg; | 619 | struct video_picture *pict = arg; |
620 | memset(&fbuf2, 0, sizeof(fbuf2)); | ||
619 | 621 | ||
620 | set_v4l_control(inode, file, | 622 | set_v4l_control(inode, file, |
621 | V4L2_CID_BRIGHTNESS, pict->brightness, drv); | 623 | V4L2_CID_BRIGHTNESS, pict->brightness, drv); |