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

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

Merge "ANDROID: usb: gadget: Do not disconnect unregistered dev"

parents 731a02b0 80532ba0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2109,6 +2109,12 @@ void composite_disconnect(struct usb_gadget *gadget)
	struct usb_composite_dev	*cdev = get_gadget_data(gadget);
	unsigned long			flags;

	if (cdev == NULL) {
		WARN(1, "%s: Calling disconnect on a Gadget that is \
			 not connected\n", __func__);
		return;
	}

	/* REVISIT:  should we have config and device level
	 * disconnect callbacks?
	 */