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

Commit 87cda662 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: f_fs: Release endpoint upon disable"

parents 21ea3f39 862bbcaa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1567,8 +1567,10 @@ static void ffs_func_eps_disable(struct ffs_function *func)
	spin_lock_irqsave(&func->ffs->eps_lock, flags);
	do {
		/* pending requests get nuked */
		if (likely(ep->ep))
		if (likely(ep->ep)) {
			usb_ep_disable(ep->ep);
			ep->ep->driver_data = NULL;
		}
		epfile->ep = NULL;

		++ep;