From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F6AB6FC9 for ; Sun, 17 Sep 2023 19:42:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90D83C43391; Sun, 17 Sep 2023 19:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694979746; bh=o67hvdOJDzgu/PbW5ZoJ6iRD55enf6mzLj2TNI343QU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpVGIN65TQAlvIFJ2Rr4/TugRG18VxdJkUwrD3ccRjkGNoOygoZLBQc9qT+MZXXCS jKauFZ7X7mGKYdTofl7XhiEwTFs4rVHv2Y7CQ5IGv32EeByYPCnRSY21Pj7WkSvwEB fUS20fjO2wmpIXnAXTv0GLG8aQOh5GXmx/lG5xGs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Eric Dumazet , Christoph Hellwig , Chuck Lever , Simon Horman , Paolo Abeni , Sasha Levin Subject: [PATCH 5.10 402/406] ipv6: fix ip6_sock_set_addr_preferences() typo Date: Sun, 17 Sep 2023 21:14:16 +0200 Message-ID: <20230917191111.873593618@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191101.035638219@linuxfoundation.org> References: <20230917191101.035638219@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet [ Upstream commit 8cdd9f1aaedf823006449faa4e540026c692ac43 ] 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: 18d5ad623275 ("ipv6: add ip6_sock_set_addr_preferences") Signed-off-by: Eric Dumazet Cc: Christoph Hellwig Cc: Chuck Lever Reviewed-by: Simon Horman Link: https://lore.kernel.org/r/20230911154213.713941-1-edumazet@google.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- include/net/ipv6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4c8f97a6da5a7..47d644de0e47c 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -1249,7 +1249,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; -- 2.40.1