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

Commit b401e193 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: u_ether: Add NULL check for link->in_ep and link->out_ep"

parents a0febba4 aab232f3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2131,8 +2131,10 @@ struct net_device *gether_connect(struct gether *link)

	/* on error, disable any endpoints  */
	} else {
		if (link->out_ep)
			(void) usb_ep_disable(link->out_ep);
fail1:
		if (link->in_ep)
			(void) usb_ep_disable(link->in_ep);
	}