Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba7b5c22 authored by Nickolai Zeldovich's avatar Nickolai Zeldovich Committed by Sarah Sharp
Browse files

drivers: xhci: fix incorrect bit test



Fix incorrect bit test that originally showed up in
4ee823b8 "USB/xHCI: Support
device-initiated USB 3.0 resume."

Use '&' instead of '&&'.

This should be backported to kernels as old as 3.4.

Signed-off-by: default avatarNickolai Zeldovich <nickolai@csail.mit.edu>
Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
parent f18f8ed2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1698,7 +1698,7 @@ static void handle_port_status(struct xhci_hcd *xhci,
				faked_port_index + 1);
		if (slot_id && xhci->devs[slot_id])
			xhci_ring_device(xhci, slot_id);
		if (bus_state->port_remote_wakeup && (1 << faked_port_index)) {
		if (bus_state->port_remote_wakeup & (1 << faked_port_index)) {
			bus_state->port_remote_wakeup &=
				~(1 << faked_port_index);
			xhci_test_and_clear_bit(xhci, port_array,