]> err.no Git - linux-2.6/blobdiff - net/ipv6/route.c
[IPV6] ROUTE: Fix dst reference counting in ip6_pol_route_lookup().
[linux-2.6] / net / ipv6 / route.c
index 75f4bb9611cec4cd08727d011870e588dcc994d2..d6b4b4f48d18cb6d9736c520b854d0899c98bc23 100644 (file)
@@ -510,8 +510,8 @@ restart:
        rt = fn->leaf;
        rt = rt6_device_match(rt, fl->oif, flags);
        BACKTRACK(&fl->fl6_src);
-       dst_hold(&rt->u.dst);
 out:
+       dst_hold(&rt->u.dst);
        read_unlock_bh(&table->tb6_lock);
 
        rt->u.dst.lastuse = jiffies;