]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: rt6_check should return NULL if 'from' is NULL
authorDavid Ahern <dsahern@gmail.com>
Wed, 17 Jul 2019 22:08:43 +0000 (15:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 22:25:54 +0000 (15:25 -0700)
commitc3d950ee2e74b68083db726bff8651482d0f15c8
treecf85fc699ba3cdbe45dce550a67cacd26af60baf
parente6953ec5b1892b4a8e162dbb3904a82413e2e2ac
ipv6: rt6_check should return NULL if 'from' is NULL

Paul reported that l2tp sessions were broken after the commit referenced
in the Fixes tag. Prior to this commit rt6_check returned NULL if the
rt6_info 'from' was NULL - ie., the dst_entry was disconnected from a FIB
entry. Restore that behavior.

Fixes: 87bd20a7a731 ("net/ipv6: separate handling of FIB entries from dst based routes")
Reported-by: Paul Donohue <linux-kernel@PaulSD.com>
Tested-by: Paul Donohue <linux-kernel@PaulSD.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c