summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/compat_ioctl32.c
AgeCommit message (Collapse)Author
2006-03-09User annotations and fixesMauro Carvalho Chehab
* compat_alloc_user_space() returns __user pointer * copying between two userland areas is copy_in_user(), not copy_from_user() * dereferencing userland pointers is bad * so's get_user() from local variables ... plus usual __user annotations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-12Some fixes to compat_ioctl32Mauro Carvalho Chehab
From: Guy Martin <gmsoft@tuxicoman.be> - Adds suppport or fix support for VIDIOC_ENUMSTD, VIDIOC_ENUMINPUT, VIDIOC_G_TUNER and VIDIOC_S_TUNER. - Fix the warnings at compile time and add checks for the pointer validity using access_ok(). - v4l_print_ioctl() has also be added to identify possible missing ioctls. - Has been tested on sparc64 and amd64. Other arches such as mips and hppa are expected to work as sparc, but not tested yet. Signed-off-by: Guy Martin <gmsoft@tuxicoman.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2006-01-04Fixes a bug at compat_ioctl32 kernel moduleMauro Carvalho Chehab
- 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: Guy Martin <gmsoft@tuxicoman.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-10make tree to compile against kernel 2.5.31Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-08Fixes some troubles at v4l2 compat stuffMauro Carvalho Chehab
From: Philippe De Muyter <phdm@macqel.be> - This patch fixes merge and typo problems in v4l2/compat, and fixes VIDIOC_STREAMON, VIDIOC_STREAMOFF & VIDIOC_S_FBUF. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07kernel-sync patches.Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07Adds 32-bit compatibility for v4l2 framegrabber ioctls.Mauro Carvalho Chehab
From: Philippe De Muyter <phdm@macqel.be> adds 32-bit compatibility for v4l2 framegrabber ioctls. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-1264-bit fixes esp. for broken compat_ioctl32.Hans Verkuil
From: Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-11Another build fix for compat_ioctl32.cNickolay V. Shmyrev
From: MishalĂ… Pytasz <pytasz@lodz.home.pl> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-11More build fixes for compat_ioctl32.cNickolay V. Shmyrev
From: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-10Use f_op field of struct file instead of strange f_ops.Nickolay V. Shmyrev
From: Axel Thimm <Axel.Thimm@ATrpms.net> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-09compat_ioctl32 installation fixesRicardo Cerqueira
From: Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-11-09Included missing file at the latest commitMauro Carvalho Chehab
- included compat_ioctl32.c, to handle 64 -> 32 bits compat ioctls Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>