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

Commit 313c0efc 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: configfs: Correct usb functions order for UDC gadget bind"

parents 946085b7 8b8a942b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1259,9 +1259,9 @@ static void purge_configs_funcs(struct gadget_info *gi)

		cfg = container_of(c, struct config_usb_cfg, c);

		list_for_each_entry_safe(f, tmp, &c->functions, list) {
		list_for_each_entry_safe_reverse(f, tmp, &c->functions, list) {

			list_move_tail(&f->list, &cfg->func_list);
			list_move(&f->list, &cfg->func_list);
			if (f->unbind) {
				dev_err(&gi->cdev.gadget->dev, "unbind function"
						" '%s'/%pK\n", f->name, f);