ipv6: Initialize the neighbour pointer of rt6_info on allocation
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 5 Jul 2012 03:18:28 +0000 (03:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2012 21:20:07 +0000 (14:20 -0700)
commita2de86f63cfc92f7aaf11e7b9d9f2150946a1622
tree770781fb05fd4816eba9597fa5aa435cfd3e1788
parentc90a9bb9073a4096596360f02ea711c619663494
ipv6: Initialize the neighbour pointer of rt6_info on allocation

git commit 97cac082 (ipv6: Store route neighbour in rt6_info struct)
added a neighbour pointer to rt6_info. Currently we don't initialize
this pointer at allocation time. We assume this pointer to be valid
if it is not a null pointer, so initialize it on allocation.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c