Skip to content
Commit 8ade06c6 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarBjarke Istrup Pedersen <gurligebis@gentoo.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1776dad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment