]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf49c53095d53387f5959f044b9e8e3ba3ee54f0b
tree770781fb05fd4816eba9597fa5aa435cfd3e1788
parent4e4929281c49fd7c06c9387280c8f317b13da5c7
ipv6: Initialize the neighbour pointer of rt6_info on allocation

git commit 4d9fa718 (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