aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-09-26 20:35:14 -0400
committerDavid S. Miller <davem@davemloft.net>2018-09-26 22:57:23 -0400
commit36f19d5b4f99fa9fa8263877e5f8e669d7fddc14 (patch)
tree733d02e8cf2f90e0abf4241f7c33ad8491bbdfe1
parent3f32d0be6c16b902b687453c962d17eea5b8ea19 (diff)
net/ipv6: Remove extra call to ip6_convert_metrics for multipath case
The change to move metrics from the dst to rt6_info moved the call to ip6_convert_metrics from ip6_route_add to ip6_route_info_create. In doing so it makes the call in ip6_route_info_append redundant and actually leaks the metrics installed as part of the ip6_route_info_create. Remove the now unnecessary call. Fixes: d4ead6b34b67f ("net/ipv6: move metrics from dst to rt6_info") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/route.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 826b14de7dbb..a366c05a239d 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -4321,11 +4321,6 @@ static int ip6_route_info_append(struct net *net,
4321 if (!nh) 4321 if (!nh)
4322 return -ENOMEM; 4322 return -ENOMEM;
4323 nh->fib6_info = rt; 4323 nh->fib6_info = rt;
4324 err = ip6_convert_metrics(net, rt, r_cfg);
4325 if (err) {
4326 kfree(nh);
4327 return err;
4328 }
4329 memcpy(&nh->r_cfg, r_cfg, sizeof(*r_cfg)); 4324 memcpy(&nh->r_cfg, r_cfg, sizeof(*r_cfg));
4330 list_add_tail(&nh->next, rt6_nh_list); 4325 list_add_tail(&nh->next, rt6_nh_list);
4331 4326