Commit 3aeffaa9 authored by Kunwu Chan's avatar Kunwu Chan Committed by Yongqiang Liu
Browse files

ipv4: Correct/silence an endian warning in __ip_do_redirect

stable inclusion
from stable-v4.19.301
commit 996f39b6ab7e22c5ea2d79a6738b98305a94b889
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8UH13


CVE: NA

--------------------------------

[ Upstream commit c0e2926266af3b5acf28df0a8fc6e4d90effe0bb ]

net/ipv4/route.c:783:46: warning: incorrect type in argument 2 (different base types)
net/ipv4/route.c:783:46:    expected unsigned int [usertype] key
net/ipv4/route.c:783:46:    got restricted __be32 [usertype] new_gw

Fixes: 969447f2 ("ipv4: use new_gw for redirect neigh lookup")
Suggested-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20231119141759.420477-1-chentao@kylinos.cn


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 8652ced7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment