mpls: Better error code for unsupported option.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Mar 2015 22:22:40 +0000 (16:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Mar 2015 23:30:06 +0000 (19:30 -0400)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c

index 0f2833e1b233ccc7330a4b701e2ed28a3c962521..5c99e3fc1b72fd676844e9b4559a17e46defa0d2 100644 (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;