Commit 4d696703 authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

ipv6: fix ip6_sock_set_addr_preferences() typo

stable inclusion
from stable-v5.10.195
commit 6edf82223fab5924fd53ff5ac8a075ccda0bc7fe
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I95JOC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6edf82223fab5924fd53ff5ac8a075ccda0bc7fe



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

[ Upstream commit 8cdd9f1a ]

ip6_sock_set_addr_preferences() second argument should be an integer.

SUNRPC attempts to set IPV6_PREFER_SRC_PUBLIC were
translated to IPV6_PREFER_SRC_TMP

Fixes: 18d5ad62 ("ipv6: add ip6_sock_set_addr_preferences")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230911154213.713941-1-edumazet@google.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ebcb65e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment