Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22021
b: refs/heads/master
c: 9fcd5c3
h: refs/heads/master
i:
  22019: acc6532
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 59f0dce commit ec4fdf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8781ba0aa9d9dd2870b75dba8d9a47e0f5a3f96a
refs/heads/master: 9fcd5c322ca2ee636e06e0c099cf8f1a692f832e
8 changes: 4 additions & 4 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ static ssize_t usbdev_read(struct file *file, char __user *buf, size_t nbytes, l
struct usb_device_descriptor temp_desc ; /* 18 bytes - fits on the stack */

memcpy(&temp_desc, &dev->descriptor, sizeof(dev->descriptor));
le16_to_cpus(&temp_desc->bcdUSB);
le16_to_cpus(&temp_desc->idVendor);
le16_to_cpus(&temp_desc->idProduct);
le16_to_cpus(&temp_desc->bcdDevice);
le16_to_cpus(&temp_desc.bcdUSB);
le16_to_cpus(&temp_desc.idVendor);
le16_to_cpus(&temp_desc.idProduct);
le16_to_cpus(&temp_desc.bcdDevice);

len = sizeof(struct usb_device_descriptor) - pos;
if (len > nbytes)
Expand Down

0 comments on commit ec4fdf7

Please sign in to comment.