]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mpls: fix rtm policy in mpls_getroute
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 5 Jul 2017 00:03:02 +0000 (17:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jul 2017 08:04:32 +0000 (09:04 +0100)
fix rtm policy name typo in mpls_getroute and also remove
export of rtm_ipv4_policy

Fixes: 397fc9e5cefe ("mpls: route get support")
Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c
net/mpls/af_mpls.c

index 1b5860f5b9d75a33681273c0aa758b71a732e815..4e678fa892ddcf1985fb37c3627a660a8f69da9d 100644 (file)
@@ -626,7 +626,6 @@ const struct nla_policy rtm_ipv4_policy[RTA_MAX + 1] = {
        [RTA_UID]               = { .type = NLA_U32 },
        [RTA_MARK]              = { .type = NLA_U32 },
 };
-EXPORT_SYMBOL_GPL(rtm_ipv4_policy);
 
 static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
                             struct nlmsghdr *nlh, struct fib_config *cfg,
index e17d6cd2dd4548a7e37fe10f3ac3aeb7f6a7b244..bdcfb2d04cd292c4099977f3b09be1ae47e1d3ce 100644 (file)
@@ -2091,7 +2091,7 @@ static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,
        u8 n_labels;
 
        err = nlmsg_parse(in_nlh, sizeof(*rtm), tb, RTA_MAX,
-                         rtm_ipv4_policy, extack);
+                         rtm_mpls_policy, extack);
        if (err < 0)
                goto errout;