]> git.hungrycats.org Git - linux/commit
[IPV6]: Fix oops in rt6_device_match()
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Sun, 12 Sep 2004 09:14:48 +0000 (02:14 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Sun, 12 Sep 2004 09:14:48 +0000 (02:14 -0700)
commit51a0b87a0408452c62c0379c8c83ae1e7f6592e1
treea1d0757a801fcc6f7efb0deaae64a5afb206f1a9
parent0f180260ee0f7d2a2049fb2f5bda807757938f5a
[IPV6]: Fix oops in rt6_device_match()

This fixes panic in rt6_device_match().

Well, rt->rt6i_idev is always set if it is dynamically allocated.
However, when we hit ip6_null_entry here, its rt6i_idev is NULL.
This patch is minimum fix to avoid the oops for now.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c