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

Commit 9dc70e0b authored by qctecmdr's avatar qctecmdr 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 685b2b00 9d00fbe2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3449,8 +3449,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;