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

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

Merge "usb: gadget: f_fs: Do not match when function do not bind"

parents 97f29dcf 364eb6aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3546,6 +3546,11 @@ static bool ffs_func_req_match(struct usb_function *f,
{
	struct ffs_function *func = ffs_func_from_usb(f);

	if (!test_bit(FFS_FL_BOUND, &func->ffs->flags)) {
		ffs_log("ffs function do not bind yet.\n");
		return false;
	}

	if (config0 && !(func->ffs->user_flags & FUNCTIONFS_CONFIG0_SETUP))
		return false;