[PATCH] compat_ioctl.c : VIDIOCSWIN using the wrong variable asargument

From: Guy Martin
Date: Mon Dec 19 2005 - 05:46:25 EST




Hi,

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.


Guy
--- 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)

Attachment: pgp00000.pgp
Description: PGP signature