diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/devio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index d01bd77e7b14..de6a7c07cf97 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -137,10 +137,10 @@ static ssize_t usbdev_read(struct file *file, char __user *buf, size_t nbytes, l | |||
137 | struct usb_device_descriptor temp_desc ; /* 18 bytes - fits on the stack */ | 137 | struct usb_device_descriptor temp_desc ; /* 18 bytes - fits on the stack */ |
138 | 138 | ||
139 | memcpy(&temp_desc, &dev->descriptor, sizeof(dev->descriptor)); | 139 | memcpy(&temp_desc, &dev->descriptor, sizeof(dev->descriptor)); |
140 | le16_to_cpus(&temp_desc->bcdUSB); | 140 | le16_to_cpus(&temp_desc.bcdUSB); |
141 | le16_to_cpus(&temp_desc->idVendor); | 141 | le16_to_cpus(&temp_desc.idVendor); |
142 | le16_to_cpus(&temp_desc->idProduct); | 142 | le16_to_cpus(&temp_desc.idProduct); |
143 | le16_to_cpus(&temp_desc->bcdDevice); | 143 | le16_to_cpus(&temp_desc.bcdDevice); |
144 | 144 | ||
145 | len = sizeof(struct usb_device_descriptor) - pos; | 145 | len = sizeof(struct usb_device_descriptor) - pos; |
146 | if (len > nbytes) | 146 | if (len > nbytes) |