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:
Eric W. Biederman 2015-03-07 16:22:40 -06:00 committed by David S. Miller
parent 19d0c341d9
commit 0f7bbd5805
1 changed files with 1 additions and 1 deletions

View File

@ -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;