Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364515
b: refs/heads/master
c: 505bdbc
h: refs/heads/master
i:
  364513: 262534e
  364511: c67b125
v: v3
  • Loading branch information
Chen Gang authored and Greg Kroah-Hartman committed Apr 1, 2013
1 parent 45747e1 commit 908ea8c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 8e277d7cfae470b76eb955f6ee9aa32d111bf5ae
refs/heads/master: 505bdbc79d20f8f2a56c02498f079bb23b0ef756
10 changes: 6 additions & 4 deletions trunk/drivers/usb/core/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,10 +1253,12 @@ static int usb_suspend_both(struct usb_device *udev, pm_message_t msg)

/* If the suspend failed, resume interfaces that did get suspended */
if (status != 0) {
msg.event ^= (PM_EVENT_SUSPEND | PM_EVENT_RESUME);
while (++i < n) {
intf = udev->actconfig->interface[i];
usb_resume_interface(udev, intf, msg, 0);
if (udev->actconfig) {
msg.event ^= (PM_EVENT_SUSPEND | PM_EVENT_RESUME);
while (++i < n) {
intf = udev->actconfig->interface[i];
usb_resume_interface(udev, intf, msg, 0);
}
}

/* If the suspend succeeded then prevent any more URB submissions
Expand Down

0 comments on commit 908ea8c

Please sign in to comment.