summaryrefslogtreecommitdiffstats
path: root/net/mpls
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-07 16:22:40 -0600
committerDavid S. Miller <davem@davemloft.net>2015-03-08 19:30:06 -0400
commit0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc (patch)
tree3c9fb0f33effe541bfec23f445f7f470a4509bc5 /net/mpls
parent19d0c341d9d5cd186661fef58e7264a9701ef71d (diff)
downloadop-kernel-dev-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.zip
op-kernel-dev-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.tar.gz
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 0f2833e..5c99e3f 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;
OpenPOWER on IntegriCloud