]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/ipv4/fib_semantics.c
ipv4: Cache output routes in fib_info nexthops.
[mirror_ubuntu-zesty-kernel.git] / net / ipv4 / fib_semantics.c
index 2b57d768240d9499db471e7d889f422652b84245..83d0f42b619a439bacd59b6173a86e100524a457 100644 (file)
@@ -171,6 +171,8 @@ static void free_fib_info_rcu(struct rcu_head *head)
                        dev_put(nexthop_nh->nh_dev);
                if (nexthop_nh->nh_exceptions)
                        free_nh_exceptions(nexthop_nh);
+               if (nexthop_nh->nh_rth_output)
+                       dst_release(&nexthop_nh->nh_rth_output->dst);
        } endfor_nexthops(fi);
 
        release_net(fi->fib_net);