Commit 499c1869 authored by audetto@tiscali.it's avatar audetto@tiscali.it Committed by Mauro Carvalho Chehab

V4L/DVB (4862): Fixes uninitialized variables passed to VIDIOC_G_FBUF.

Signed-off-by: default avatarAndrea A Odetti <audetto@tiscali.it>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e75f9cee
...@@ -350,6 +350,7 @@ v4l_compat_translate_ioctl(struct inode *inode, ...@@ -350,6 +350,7 @@ v4l_compat_translate_ioctl(struct inode *inode,
struct video_buffer *buffer = arg; struct video_buffer *buffer = arg;
memset(buffer, 0, sizeof(*buffer)); memset(buffer, 0, sizeof(*buffer));
memset(&fbuf2, 0, sizeof(fbuf2));
err = drv(inode, file, VIDIOC_G_FBUF, &fbuf2); err = drv(inode, file, VIDIOC_G_FBUF, &fbuf2);
if (err < 0) { if (err < 0) {
...@@ -616,6 +617,7 @@ v4l_compat_translate_ioctl(struct inode *inode, ...@@ -616,6 +617,7 @@ v4l_compat_translate_ioctl(struct inode *inode,
case VIDIOCSPICT: /* set tone controls & partial capture format */ case VIDIOCSPICT: /* set tone controls & partial capture format */
{ {
struct video_picture *pict = arg; struct video_picture *pict = arg;
memset(&fbuf2, 0, sizeof(fbuf2));
set_v4l_control(inode, file, set_v4l_control(inode, file,
V4L2_CID_BRIGHTNESS, pict->brightness, drv); V4L2_CID_BRIGHTNESS, pict->brightness, drv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment