Skip to content

Commit 8cdd9f1

Browse files
edumazetPaolo Abeni
authored andcommitted
ipv6: fix ip6_sock_set_addr_preferences() typo
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 <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Chuck Lever <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 7a6102a commit 8cdd9f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/ipv6.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ static inline int __ip6_sock_set_addr_preferences(struct sock *sk, int val)
13601360
return 0;
13611361
}
13621362

1363-
static inline int ip6_sock_set_addr_preferences(struct sock *sk, bool val)
1363+
static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
13641364
{
13651365
int ret;
13661366

0 commit comments

Comments
 (0)