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 C513E6AAC for ; Sun, 17 Sep 2023 20:20:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F379C433C7; Sun, 17 Sep 2023 20:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694982057; bh=+AxiysUv+DiW0tn5Ps9w3I0lRhwutkSeUoo6qha8VoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=reREw/+OEO/FLXXR2CWhjzvNWvrQqJdibiiS2ywvKnLwDGVXca0QEMGXrgWnow37T 5DEXrtlxeHCQvvXudWOezOCB9q5JQyxTQFyVvqKxICEWMdIAQT+n70NwLcDtAVEWc7 RRIxKGbFuxPMsDEVTEFZAjX0bzWBnXxfA1WmqCZg= 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 6.1 211/219] ipv6: fix ip6_sock_set_addr_preferences() typo Date: Sun, 17 Sep 2023 21:15:38 +0200 Message-ID: <20230917191048.556355586@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191040.964416434@linuxfoundation.org> References: <20230917191040.964416434@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 6.1-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 e4ceef687c1c2..8ced112167599 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -1322,7 +1322,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