net: ipv4: Fix wrong type conversion from hint to rt in ip_route_use_hint()
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 27 Jun 2020 07:47:51 +0000 (15:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:33:58 +0000 (09:33 +0200)
commitdedadfe5aeba0d623af3e3b3e25e0df581f02101
treea95c346c3b0beab98897b93bdc36acb6e0c1b8e5
parent54e5e458698fa3cc736627a8219a4d3c436a0418
net: ipv4: Fix wrong type conversion from hint to rt in ip_route_use_hint()

[ Upstream commit 2ce578ca9444bb44da66b9a494f56e7ec12e6466 ]

We can't cast sk_buff to rtable by (struct rtable *)hint. Use skb_rtable().

Fixes: 02b24941619f ("ipv4: use dst hint for ipv4 list receive")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c