projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d0ed7
)
USB: Checking the wrong variable in usb_disable_lpm()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 22 May 2012 17:54:34 +0000
(20:54 +0300)
committer
Sarah Sharp
<sarah.a.sharp@linux.intel.com>
Wed, 13 Jun 2012 23:37:21 +0000
(16:37 -0700)
We check "u1_params" instead of checking "u2_params".
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hub.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/hub.c
b/drivers/usb/core/hub.c
index 04fb834c3fa1395c4d4df4a90d485929931ea0e3..25a7422ee657b91021b6858615666b00a9ab19a2 100644
(file)
--- a/
drivers/usb/core/hub.c
+++ b/
drivers/usb/core/hub.c
@@
-3379,7
+3379,7
@@
int usb_disable_lpm(struct usb_device *udev)
return 0;
udev->lpm_disable_count++;
- if ((udev->u1_params.timeout == 0 && udev->u
1
_params.timeout == 0))
+ if ((udev->u1_params.timeout == 0 && udev->u
2
_params.timeout == 0))
return 0;
/* If LPM is enabled, attempt to disable it. */