Skip to content

Commit

Permalink
ipv6: fix ip6_sock_set_addr_preferences() typo
Browse files Browse the repository at this point in the history
[ Upstream commit 8cdd9f1 ]

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: 18d5ad6 ("ipv6: add ip6_sock_set_addr_preferences")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230911154213.713941-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Eric Dumazet authored and gregkh committed Sep 19, 2023
1 parent d1cf875 commit 7a81158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/ipv6.h
Expand Up @@ -1356,7 +1356,7 @@ static inline int __ip6_sock_set_addr_preferences(struct sock *sk, int val)
return 0;
}

static inline int ip6_sock_set_addr_preferences(struct sock *sk, bool val)
static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
{
int ret;

Expand Down

0 comments on commit 7a81158

Please sign in to comment.