]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB (3296): Fixes a bug at compat_ioctl32 kernel module
authorGuy Martin <gmsoft@tuxicoman.be>
Mon, 9 Jan 2006 17:32:45 +0000 (15:32 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:32:45 +0000 (15:32 -0200)
- 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>
drivers/media/video/compat_ioctl32.c

index 27945e0821954b17bb5f63358a78100f5ed89dd4..6194b01255768484e066e2d7fc7f273938d6c60b 100644 (file)
@@ -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)