[IPV6] NDISC: Fix is_router flag setting.
[safe/jmp/linux-2.6] / net / ipv6 / route.c
index 75f4bb9..d6b4b4f 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;