Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325867
b: refs/heads/master
c: ca3c153
h: refs/heads/master
i:
  325865: e36a56b
  325863: d5fcb8b
v: v3
  • Loading branch information
Lan Tianyu authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 875177a commit b3b5716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: ca9c9d0c922e4f1dac80699ebab1269d6dbaff85
refs/heads/master: ca3c1539adfe9c1b86f16faf314b3bf54c3b5389
3 changes: 2 additions & 1 deletion trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,8 @@ static void set_usb_port_removable(struct usb_device *udev)
return;

if (hub_is_superspeed(hdev)) {
if (hub->descriptor->u.ss.DeviceRemovable & (1 << port))
if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable)
& (1 << port))
removable = false;
} else {
if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8)))
Expand Down

0 comments on commit b3b5716

Please sign in to comment.