aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-11-19 01:19:03 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-19 01:19:03 -0500
commit3505d1a9fd65e2d3e00827857b6795d9d8983658 (patch)
tree941cfafdb57c427bb6b7ebf6354ee93b2a3693b5 /fs/compat_ioctl.c
parentdfef948ed2ba69cf041840b5e860d6b4e16fa0b1 (diff)
parent66b00a7c93ec782d118d2c03bd599cfd041e80a1 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/sfc/sfe4001.c drivers/net/wireless/libertas/cmd.c drivers/staging/Kconfig drivers/staging/Makefile drivers/staging/rtl8187se/Kconfig drivers/staging/rtl8192e/Kconfig
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index cacf8a83e394..229e72218165 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -1199,7 +1199,7 @@ struct space_resv_32 {
1199/* just account for different alignment */ 1199/* just account for different alignment */
1200static int compat_ioctl_preallocate(struct file *file, unsigned long arg) 1200static int compat_ioctl_preallocate(struct file *file, unsigned long arg)
1201{ 1201{
1202 struct space_resv_32 __user *p32 = (void __user *)arg; 1202 struct space_resv_32 __user *p32 = compat_ptr(arg);
1203 struct space_resv __user *p = compat_alloc_user_space(sizeof(*p)); 1203 struct space_resv __user *p = compat_alloc_user_space(sizeof(*p));
1204 1204
1205 if (copy_in_user(&p->l_type, &p32->l_type, sizeof(s16)) || 1205 if (copy_in_user(&p->l_type, &p32->l_type, sizeof(s16)) ||
@@ -2063,7 +2063,7 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
2063#else 2063#else
2064 case FS_IOC_RESVSP: 2064 case FS_IOC_RESVSP:
2065 case FS_IOC_RESVSP64: 2065 case FS_IOC_RESVSP64:
2066 error = ioctl_preallocate(filp, (void __user *)arg); 2066 error = ioctl_preallocate(filp, compat_ptr(arg));
2067 goto out_fput; 2067 goto out_fput;
2068#endif 2068#endif
2069 2069