ipv6: Fix may be used uninitialized warning in rt6_check
commit 3614364527daa870264f6dde77f02853cdecd02c upstream. rt_cookie might be used uninitialized, fix this by initializing it. Fixes: c5cff8561d2d ("ipv6: add rcu grace period before freeing fib6_node") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
f2195d2e12
commit
5ca6092186
|
@ -1072,7 +1072,7 @@ struct dst_entry *ip6_blackhole_route(struct net *net, struct dst_entry *dst_ori
|
|||
static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie)
|
||||
{
|
||||
struct rt6_info *rt;
|
||||
u32 rt_cookie;
|
||||
u32 rt_cookie = 0;
|
||||
|
||||
rt = (struct rt6_info *) dst;
|
||||
|
||||
|
|
Loading…
Reference in New Issue