Skip to content

Commit

Permalink
USB: Checking the wrong variable in usb_disable_lpm()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Sarah Sharp committed Jun 13, 2012
1 parent f2d0ed7 commit 55558c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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->u1_params.timeout == 0))
if ((udev->u1_params.timeout == 0 && udev->u2_params.timeout == 0))
return 0;

/* If LPM is enabled, attempt to disable it. */
Expand Down

0 comments on commit 55558c3

Please sign in to comment.