]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:25 +0000 (08:28 +0200)
commitf2acb2903f1603643a7b683c04bd88a7781888dd
tree94e8533467a5b1cb18979665e41710db9a871f53
parent7719f7253677b5a9a3db8b95d2861d32081cfca0
ipv6: rt6_check should return NULL if 'from' is NULL

[ Upstream commit 49d05fe2c9d1b4a27761c9807fec39b8155bef9e ]

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: 93531c674315 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c