mpls: Better error code for unsupported option.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
19d0c341d9
commit
0f7bbd5805
|
@ -348,7 +348,7 @@ static int mpls_route_add(struct mpls_route_config *cfg)
|
|||
goto errout;
|
||||
|
||||
/* Append makes no sense with mpls */
|
||||
err = -EINVAL;
|
||||
err = -EOPNOTSUPP;
|
||||
if (cfg->rc_nlflags & NLM_F_APPEND)
|
||||
goto errout;
|
||||
|
||||
|
|
Loading…
Reference in New Issue