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

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

Merge "usb: dwc3: Fix NULL ptr dereference in ep disable ops"

parents f8727c02 979d82fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -666,7 +666,7 @@ static int __dwc3_gadget_ep_disable(struct dwc3_ep *dep)
	 * with HWO bit set from previous composition when update transfer cmd
	 * is issued.
	 */
	if (dep->number > 1) {
	if (dep->number > 1 && dep->trb_pool) {
		memset(&dep->trb_pool[0], 0,
			sizeof(struct dwc3_trb) * dep->num_trbs);
		dbg_event(dep->number, "Clr_TRB", 0);