From: Eric W. Biederman Date: Sat, 7 Mar 2015 22:22:40 +0000 (-0600) Subject: mpls: Better error code for unsupported option. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc;p=openwrt%2Fstaging%2Fblogic.git mpls: Better error code for unsupported option. Signed-off-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- 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;