diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-07 16:22:40 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-08 19:30:06 -0400 |
commit | 0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc (patch) | |
tree | 3c9fb0f33effe541bfec23f445f7f470a4509bc5 /net/mpls | |
parent | 19d0c341d9d5cd186661fef58e7264a9701ef71d (diff) | |
download | linux-rpi3-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.tar.gz linux-rpi3-0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc.tar.bz2 linux-rpi3-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.c | 2 |
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; |