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

Commit 7cd23b22 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: f_fs: Set ffs->func to NULL after disabling endpoint in set_alt()"

parents a74bc56b 324e676d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2424,8 +2424,10 @@ static int ffs_func_set_alt(struct usb_function *f,
			return intf;
	}

	if (ffs->func)
	if (ffs->func) {
		ffs_func_eps_disable(ffs->func);
		ffs->func = NULL;
	}

	if (ffs->state != FFS_ACTIVE)
		return -ENODEV;