]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jun 2020 01:02:32 +0000 (18:02 -0700)
commit7998c20e0e6b91661a856f776c01c2bf8257b894
tree4c0f249609eb077106267181eddb3e571f82a749
parent160653485caa77b919ecf53174a7b941ffdb7894
net: ipv4: Fix wrong type conversion from hint to rt in ip_route_use_hint()

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

Fixes: 465c6dcc4637 ("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>
net/ipv4/route.c