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

Commit 08abc848 authored by Kyle Yan's avatar Kyle Yan 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()" into msm-4.8

parents 97acf9cd 0b192d2d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3404,8 +3404,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_DEACTIVATED) {
		ffs->state = FFS_CLOSING;