diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-08-13 12:57:03 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-09-05 15:07:00 -0400 |
commit | 052c7f9ffb0e95843e75448d02664459253f9ff8 (patch) | |
tree | 35ab6de105398db0e056520cf27ff5f6870b1d76 /drivers/usb/host | |
parent | a96874a2a92feaef607ddd3137277a788cb927a6 (diff) |
xhci: Fix a logical vs bitwise AND bug
The intent was to test whether the flag was set.
This patch should be backported to stable kernels as old as 3.0, since
it fixes a bug in commit e95829f474f0db3a4d940cae1423783edd966027 "xhci:
Switch PPT ports to EHCI on shutdown.", which was marked for stable.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index c59d5b5b6c7d..617b0a77b2b4 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -659,7 +659,7 @@ void xhci_shutdown(struct usb_hcd *hcd) | |||
659 | { | 659 | { |
660 | struct xhci_hcd *xhci = hcd_to_xhci(hcd); | 660 | struct xhci_hcd *xhci = hcd_to_xhci(hcd); |
661 | 661 | ||
662 | if (xhci->quirks && XHCI_SPURIOUS_REBOOT) | 662 | if (xhci->quirks & XHCI_SPURIOUS_REBOOT) |
663 | usb_disable_xhci_ports(to_pci_dev(hcd->self.controller)); | 663 | usb_disable_xhci_ports(to_pci_dev(hcd->self.controller)); |
664 | 664 | ||
665 | spin_lock_irq(&xhci->lock); | 665 | spin_lock_irq(&xhci->lock); |