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

Commit 1e6021b3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: qc_ecm: Release EPs if disable happens before set_alt(1)"

parents 68d9ef37 8dd2e3cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -744,6 +744,10 @@ static void ecm_qc_disable(struct usb_function *f)
		ecm_qc_bam_disconnect(ecm);
		if (ecm->xport != USB_GADGET_XPORT_BAM2BAM_IPA)
			gether_qc_disconnect_name(&ecm->port, "ecm0");
	} else {
		/* release EPs incase no set_alt(1) yet */
		ecm->port.in_ep->desc = NULL;
		ecm->port.out_ep->desc = NULL;
	}

	if (ecm->xport == USB_GADGET_XPORT_BAM2BAM_IPA &&