aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/devio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index bd429eaf6ea3..c697463e15dd 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -1634,14 +1634,14 @@ static int proc_reapurbnonblock(struct dev_state *ps, void __user *arg)
1634static int proc_control_compat(struct dev_state *ps, 1634static int proc_control_compat(struct dev_state *ps,
1635 struct usbdevfs_ctrltransfer32 __user *p32) 1635 struct usbdevfs_ctrltransfer32 __user *p32)
1636{ 1636{
1637 struct usbdevfs_ctrltransfer __user *p; 1637 struct usbdevfs_ctrltransfer __user *p;
1638 __u32 udata; 1638 __u32 udata;
1639 p = compat_alloc_user_space(sizeof(*p)); 1639 p = compat_alloc_user_space(sizeof(*p));
1640 if (copy_in_user(p, p32, (sizeof(*p32) - sizeof(compat_caddr_t))) || 1640 if (copy_in_user(p, p32, (sizeof(*p32) - sizeof(compat_caddr_t))) ||
1641 get_user(udata, &p32->data) || 1641 get_user(udata, &p32->data) ||
1642 put_user(compat_ptr(udata), &p->data)) 1642 put_user(compat_ptr(udata), &p->data))
1643 return -EFAULT; 1643 return -EFAULT;
1644 return proc_control(ps, p); 1644 return proc_control(ps, p);
1645} 1645}
1646 1646
1647static int proc_bulk_compat(struct dev_state *ps, 1647static int proc_bulk_compat(struct dev_state *ps,