Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3765579pxt; Tue, 10 Aug 2021 10:48:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyH5WJtqxIm7b3LIkJPhKWY1QO2evfjjP35Igs9Jg3HyYus+0pGWNC5sWObUtnvhYJxykM X-Received: by 2002:a02:1cc5:: with SMTP id c188mr28177632jac.46.1628617701858; Tue, 10 Aug 2021 10:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617701; cv=none; d=google.com; s=arc-20160816; b=FjSvUzmUTE4saLFS3nYIUXw0hSt8hUzW+oxjkhvrpuFVXRDpO6O+3sbWWWYnXluDBT sBqhSHy6BA8hWRoLNET69GnwgTY2C6MRmFI6FljsUkm6ZWnSzDOoh41GMSBkULc9kOjK gjCnATl5hxKVD8IGGUTH8xi7VJQzOPQhxUOeugMTPsliVId8OLxTvchg6O6atCReQvwL DG3po3WPeSqJrpDBJvZvJHRlrckK/yUdS+LBSvGfZ1+ShzmCyMllr3AIQDlYD7LmcPoK 5yQD8atA8uMPSYcgmQe5MDaMjxzGa9YciHd1YHpS4vsY8KzEDfuuwcQitTdODGTllUS+ aryA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AzNmxNLERwWczOCQo1E9CMy9aknjPFQdrtRFjn9X2tY=; b=QXbwW0FyMe0nQCM1UUqfJV4FkJrRjRDBOheIEWWFkRz043W+6oXOzc+2Xxy/2/KAEj IWEDVtwpE9FM/0BnGFUYotBW4l6ri1uaVLb7htNLqtAlGYvcDy550DNSpALHosfS3qti SvcDLoxtPG/TgATfbKHQU1kmuETnWf384jqMgZU5S25NmAA3SIDVmBFlYKhHkUy+lBta vhGQytdWsYfCG71QWLC4CddBLEhN6UU0AlOE4IkAeUVnmZeeXpzF+PFeqfVpExj5yVWN N86fNhq9jSCoiILFMI6jE59u461V6gNrfjZ2DgiBZeAFJLLykf87rHMpVJ1O0M/NwUnu WyBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sMJzQhQu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y196si11807159iof.86.2021.08.10.10.48.10; Tue, 10 Aug 2021 10:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sMJzQhQu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234777AbhHJRqz (ORCPT + 99 others); Tue, 10 Aug 2021 13:46:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:59866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235914AbhHJRoM (ORCPT ); Tue, 10 Aug 2021 13:44:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B2B3760E09; Tue, 10 Aug 2021 17:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617169; bh=PH/JDkQF5DdDyfNCQqB1+HvP9Yc8yhuf8Rpko1NatpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMJzQhQuw/miVGPE/3yrtqoyqV7Xt2USqKN1S7uURoO8MVJi7EApA00Ba5IpK3Rcq 42OaF0Qig7vyd8lHgyEFvEj8JJ34aJ2q+W5c6RZQsWFFsi7Pg3AMg7X2A/CKgOFlLQ 7EEUpS3wGIbJ0NGfoXTvH0iUY7S0jOVLo9UJwusE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadim Fedorenko , Antoine Tenart , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 041/135] net: ipv6: fix returned variable type in ip6_skb_dst_mtu Date: Tue, 10 Aug 2021 19:29:35 +0200 Message-Id: <20210810172957.080481312@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antoine Tenart [ Upstream commit 4039146777a91e1576da2bf38e0d8a1061a1ae47 ] The patch fixing the returned value of ip6_skb_dst_mtu (int -> unsigned int) was rebased between its initial review and the version applied. In the meantime fade56410c22 was applied, which added a new variable (int) used as the returned value. This lead to a mismatch between the function prototype and the variable used as the return value. Fixes: 40fc3054b458 ("net: ipv6: fix return value of ip6_skb_dst_mtu") Cc: Vadim Fedorenko Signed-off-by: Antoine Tenart Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- include/net/ip6_route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 42fe4e1b6a8c..44969d03debf 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -264,7 +264,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, static inline unsigned int ip6_skb_dst_mtu(struct sk_buff *skb) { - int mtu; + unsigned int mtu; struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ? inet6_sk(skb->sk) : NULL; -- 2.30.2