[IPV6] ROUTE: Fix dst reference counting in ip6_pol_route_lookup().
In ip6_pol_route_lookup(), when we finish backtracking at the top-level root entry, we need to hold it. Bug noticed by Mitsuru Chinen <CHINEN@jp.ibm.com>. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5176f91ea8
commit
33cc489668
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue