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

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

Merge "usb: dwc3: gadget: Avoid use-after-free of stale requests"

parents 1236b719 7668c04c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2189,10 +2189,8 @@ static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on)
				msecs_to_jiffies(DWC3_PULL_UP_TIMEOUT));
		if (ret == 0) {
			dev_err(dwc->dev, "timed out waiting for SETUP phase\n");
			pm_runtime_put_autosuspend(dwc->dev);
			dbg_event(0xFF, "Pullup timeout put",
				atomic_read(&dwc->dev->power.usage_count));
			return -ETIMEDOUT;
		}
	}