diff options
Diffstat (limited to 'drivers/usb/core/devices.c')
| -rw-r--r-- | drivers/usb/core/devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index 3de3c750b5f6..44f28a114c2b 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
| @@ -598,7 +598,7 @@ static ssize_t usb_device_read(struct file *file, char __user *buf, | |||
| 598 | return -EINVAL; | 598 | return -EINVAL; |
| 599 | if (nbytes <= 0) | 599 | if (nbytes <= 0) |
| 600 | return 0; | 600 | return 0; |
| 601 | if (!access_ok(VERIFY_WRITE, buf, nbytes)) | 601 | if (!access_ok(buf, nbytes)) |
| 602 | return -EFAULT; | 602 | return -EFAULT; |
| 603 | 603 | ||
| 604 | mutex_lock(&usb_bus_idr_lock); | 604 | mutex_lock(&usb_bus_idr_lock); |
