ipv6: Fix may be used uninitialized warning in rt6_check
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 25 Aug 2017 07:05:42 +0000 (09:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 00:05:27 +0000 (17:05 -0700)
commit3614364527daa870264f6dde77f02853cdecd02c
tree08557f81d6ad3e6fe8e160100fdcd855caaa53b9
parent9b4e946ce14e20d7addbfb7d9139e604f9fda107
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>
net/ipv6/route.c