[lkml]   [2005]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] compat_ioctl.c : VIDIOCSWIN using the wrong variable as argument


There is a bug in the VIDIOCSWIN ioctl32. The 32->64bit wrapper passes the wrong variable to the 64bit ioctl.
It should pass the video_window (vm) instead of the clips (p).

The attached patch fixes this and has been tested successfully on a sparc64 with the pwc driver.

--- fs/compat_ioctl.c.old 2005-12-19 08:10:17.000000000 +0100
+++ fs/compat_ioctl.c 2005-12-19 09:13:14.000000000 +0100
@@ -343,7 +343,7 @@

- return sys_ioctl(fd, VIDIOCSWIN, (unsigned long)p);
+ return sys_ioctl(fd, VIDIOCSWIN, (unsigned long)vw);

static int do_video_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-12-19 11:48    [W:0.017 / U:22.768 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site