aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@tuxicoman.be>2006-01-09 12:32:45 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:32:45 -0500
commit009494effc129094a5dcbbf2bf0345307ffe4f9b (patch)
treee8a104a39ea59c861807aead84c26e1a5233ad13 /drivers/media
parent4aa6ba513e28884b56bac529553a47a6b160c310 (diff)
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: Guy Martin <gmsoft@tuxicoman.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/compat_ioctl32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/compat_ioctl32.c b/drivers/media/video/compat_ioctl32.c
index 27945e082195..6194b0125576 100644
--- a/drivers/media/video/compat_ioctl32.c
+++ b/drivers/media/video/compat_ioctl32.c
@@ -489,7 +489,7 @@ static int do_set_window(struct file *file, unsigned int cmd, unsigned long arg)
489 } 489 }
490 } 490 }
491 491
492 return native_ioctl(file, VIDIOCSWIN, (unsigned long)p); 492 return native_ioctl(file, VIDIOCSWIN, (unsigned long)vw);
493} 493}
494 494
495static int do_video_ioctl(struct file *file, unsigned int cmd, unsigned long arg) 495static int do_video_ioctl(struct file *file, unsigned int cmd, unsigned long arg)