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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux