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

Commit 0f7bbd58 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by David S. Miller
Browse files

mpls: Better error code for unsupported option.

parent 19d0c341
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -348,7 +348,7 @@ static int mpls_route_add(struct mpls_route_config *cfg)
		goto errout;
		goto errout;


	/* Append makes no sense with mpls */
	/* Append makes no sense with mpls */
	err = -EINVAL;
	err = -EOPNOTSUPP;
	if (cfg->rc_nlflags & NLM_F_APPEND)
	if (cfg->rc_nlflags & NLM_F_APPEND)
		goto errout;
		goto errout;