diff options
| author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-08-25 09:05:42 +0200 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-11-11 13:33:28 +0000 |
| commit | 6da0c15f9c7bdeabf720792a58b62dd51e17c3fa (patch) | |
| tree | 626ac518bcf12693c29e37c16bdee98a90bc7167 | |
| parent | 5f4755d9f0667bf283a6546fced108d4a6904e31 (diff) | |
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.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
| -rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9d87913287a2..d791d769d858 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1090,7 +1090,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; |
