aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2017-08-25 09:05:42 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-25 17:05:27 -0700
commit3614364527daa870264f6dde77f02853cdecd02c (patch)
tree08557f81d6ad3e6fe8e160100fdcd855caaa53b9 /net
parentnetvsc: fix deadlock betwen link status and removal (diff)
downloadlinux-dev-3614364527daa870264f6dde77f02853cdecd02c.tar.xz
linux-dev-3614364527daa870264f6dde77f02853cdecd02c.zip
ipv6: Fix may be used uninitialized warning in rt6_check
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index a9d3564caf49..48c8c92dcbd3 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1289,7 +1289,7 @@ static void rt6_dst_from_metrics_check(struct rt6_info *rt)
static struct dst_entry *rt6_check(struct rt6_info *rt, u32 cookie)
{
- u32 rt_cookie;
+ u32 rt_cookie = 0;
if (!rt6_get_cookie_safe(rt, &rt_cookie) || rt_cookie != cookie)
return NULL;