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

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

Merge "usb: f_fs: Free descriptors in func_unbind"

parents fe091f9c 67a1b84a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3779,7 +3779,6 @@ static void ffs_func_unbind(struct usb_configuration *c,
	if (!--opts->refcnt) {
		ffs_event_add(ffs, FUNCTIONFS_UNBIND);
		functionfs_unbind(ffs);
		return;
	}

	/* cleanup after autoconfig */
@@ -3803,11 +3802,13 @@ static void ffs_func_unbind(struct usb_configuration *c,
	func->function.ssp_descriptors = NULL;
	func->interfaces_nums = NULL;

	if (opts->refcnt) {
		ffs_event_add(ffs, FUNCTIONFS_UNBIND);

		ffs_log("exit: state %d setup_state %d flag %lu", ffs->state,
			ffs->setup_state, ffs->flags);
	}
}

static struct usb_function *ffs_alloc(struct usb_function_instance *fi)
{