Skip to content

Commit

Permalink
mpls: Better error code for unsupported option.
Browse files Browse the repository at this point in the history
Signed-off-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ebiederm authored and davem330 committed Mar 8, 2015
1 parent 19d0c34 commit 0f7bbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mpls/af_mpls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0f7bbd5

Please sign in to comment.