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

Commit c50bb76a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: xhci: Replace HCD_RH_RUNNING() check in xhci_stop_endpoint"

parents e6f3b6b3 e336888c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5399,8 +5399,9 @@ int xhci_stop_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep)
	unsigned long flags;
	int ret = 0;

	if (!HCD_RH_RUNNING(hcd))
		return 0;
	ret = xhci_check_args(hcd, udev, ep, 1, true, __func__);
	if (ret <= 0)
		return ret;

	cmd = xhci_alloc_command(xhci, true, GFP_NOIO);
	if (!cmd)