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:
pgp9nF0f5D85S.pgp
Description: PGP signature
- Prev by Date: Re: [Bug] mlockall() not working properly in 2.6.x
- Next by Date: Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation
- Previous by thread: [PATCH] SECURITY,VFS,2.4: local denial-of-service with file lease
- Next by thread: quick overview of the perfmon2 interface
- Index(es):