mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
xhci: Fix a logical vs bitwise AND bug
commit052c7f9ffbupstream. 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 commite95829f474"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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4a4c06b80e
commit
c0a168c0f2
@@ -594,7 +594,7 @@ void xhci_shutdown(struct usb_hcd *hcd)
|
||||
{
|
||||
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
|
||||
|
||||
if (xhci->quirks && XHCI_SPURIOUS_REBOOT)
|
||||
if (xhci->quirks & XHCI_SPURIOUS_REBOOT)
|
||||
usb_disable_xhci_ports(to_pci_dev(hcd->self.controller));
|
||||
|
||||
spin_lock_irq(&xhci->lock);
|
||||
|
||||
Reference in New Issue
Block a user