diff options
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 2087766f9e88..274f14f1633e 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -857,11 +857,11 @@ static int proc_setintf(struct dev_state *ps, void __user *arg) | |||
857 | 857 | ||
858 | static int proc_setconfig(struct dev_state *ps, void __user *arg) | 858 | static int proc_setconfig(struct dev_state *ps, void __user *arg) |
859 | { | 859 | { |
860 | unsigned int u; | 860 | int u; |
861 | int status = 0; | 861 | int status = 0; |
862 | struct usb_host_config *actconfig; | 862 | struct usb_host_config *actconfig; |
863 | 863 | ||
864 | if (get_user(u, (unsigned int __user *)arg)) | 864 | if (get_user(u, (int __user *)arg)) |
865 | return -EFAULT; | 865 | return -EFAULT; |
866 | 866 | ||
867 | actconfig = ps->dev->actconfig; | 867 | actconfig = ps->dev->actconfig; |