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

Commit f82b959d authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

team: allow read/write-only options

parent 596e2024
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -346,6 +346,8 @@ static int team_option_get(struct team *team,
			   struct team_option_inst *opt_inst,
			   struct team_gsetter_ctx *ctx)
{
	if (!opt_inst->option->getter)
		return -EOPNOTSUPP;
	return opt_inst->option->getter(team, ctx);
}

@@ -355,6 +357,8 @@ static int team_option_set(struct team *team,
{
	int err;

	if (!opt_inst->option->setter)
		return -EOPNOTSUPP;
	err = opt_inst->option->setter(team, ctx);
	if (err)
		return err;