提交 009494ef 编写于 作者: G Guy Martin 提交者: Mauro Carvalho Chehab

V4L/DVB (3296): Fixes a bug at compat_ioctl32 kernel module

- There is a bug in the ioctl translations from 32bit userspace
to 64bit kernelspace in do_set_window().
- The video window (vw) should be passed to native_ioctl()
instead of the video clip.
Signed-off-by: NGuy Martin <gmsoft@tuxicoman.be>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
上级 4aa6ba51
...@@ -489,7 +489,7 @@ static int do_set_window(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -489,7 +489,7 @@ static int do_set_window(struct file *file, unsigned int cmd, unsigned long arg)
} }
} }
return native_ioctl(file, VIDIOCSWIN, (unsigned long)p); return native_ioctl(file, VIDIOCSWIN, (unsigned long)vw);
} }
static int do_video_ioctl(struct file *file, unsigned int cmd, unsigned long arg) static int do_video_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册