summaryrefslogtreecommitdiffstats
path: root/net/mpls
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-07 23:22:40 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-09 00:30:06 +0100
commit0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc (patch)
tree3c9fb0f33effe541bfec23f445f7f470a4509bc5 /net/mpls
parentmpls: Cleanup the rcu usage in the code. (diff)
downloadlinux-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.tar.xz
linux-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.zip
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>
Diffstat (limited to 'net/mpls')
-rw-r--r--net/mpls/af_mpls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 0f2833e1b233..5c99e3fc1b72 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -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;