]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix neigh lookup using NULL device.
authorDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2011 23:51:57 +0000 (18:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2011 23:51:57 +0000 (18:51 -0500)
commite9e18c9c20609117b064e3037c07daa1fe32c3a4
tree73cccfb3f6ca9cb8d2d9fcd9aed5a2bffb8ab49d
parent108bbd98a51816a79f3c4965d14f7b7936f1500c
ipv6: Fix neigh lookup using NULL device.

In some of the rt6_bind_neighbour() call sites, it hasn't hooked
up the rt->dst.dev pointer yet, so we'd deref a NULL pointer when
obtaining dev->ifindex for the neighbour hash function computation.

Just pass the netdevice explicitly in to fix this problem.

Reported-by: Bjarke Istrup Pedersen <gurligebis@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c