Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3757438pxt; Tue, 10 Aug 2021 10:36:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFwH5cPdp799daRthTzhRYElF7XpCGoQxEuZWhLmY8i1DicXC0yt1d56m6VH6+u8ssh1/2 X-Received: by 2002:a17:906:4b01:: with SMTP id y1mr28908103eju.186.1628616985412; Tue, 10 Aug 2021 10:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628616985; cv=none; d=google.com; s=arc-20160816; b=NUHK9rm7jQFqznrmY4jmSOhPi9XG/pvjakEbb9+rCL/Zs2pq6j3oTdEluyGFGCZ16q aAifi+w9mcw0UtFhS/4ArrOM6g5zbXH/tDMKBm5+mS/Ic9LwHXdeaDnDUSVZTFuhBUO3 nnrSp5wuGSMvBrdlbd/VVbbmmgOmPNzSsKbe7WE6Ngbu1mCOGLViV1ypZXeZ/0plcH/t F/4vcb5Nx79yB9DVdawto5Sliw+Rh6yZtXci9iZlnHYDTR7lEOnQ1GTpcXzXV8bdvJ12 gl/DFtp59hqPJc39LKe+Lk0JfNVjDG3HtlCzg7YDfj5qcuxK+nFAydoAxeuxH/L3EKVT 9dng== 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=X2jVSSZsJ2j4Z+FTCEPpvGskdeDe9z9Zgj1ENrFM97M=; b=Gjo73ebdVugK8D3E85x7a00+AAZu2jC4zy4qtwyxhSJOEhezcaoxEY7G7/Gkuo9WSN SOGXOG2k3XicC8HzumweGA3DlE3JKhHVl6j0345z1dXf5J914zbUMl1Bm1HM8/fLyr9W jVeG8z9gNoEfjAXdrdBqC8K9SYViqaOECh0As8TJ2hcmzc1xwxpQ9kAzJfFVlEjdeml7 VEdHy/eFkDPGq4qInNaBMTDfCN3NRro/wGqf4iYTK3xHv7cDab1WWNcd6PmtF0OgoW+a QakPE67L/Sn+iY69jaVuHPBBq21/R90KtWI8G9yCzFrjwHsr/XS5Nd195Zhr6kfTvY2p muXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W2D+Hjii; 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 b10si22738504edm.341.2021.08.10.10.35.59; Tue, 10 Aug 2021 10:36:25 -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=W2D+Hjii; 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 S231822AbhHJReH (ORCPT + 99 others); Tue, 10 Aug 2021 13:34:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:35812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbhHJRd3 (ORCPT ); Tue, 10 Aug 2021 13:33:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5D4F460F94; Tue, 10 Aug 2021 17:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616786; bh=XQYItl7p0iEgrUN0BXM2I4nUgxhc0I0gpvMIV4v4RWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W2D+Hjiiy7xT4ie8krBshqh26Ilyv7NjYUhH7pIrwIgAqTpl+bnygmfaT2FWpvpiC dlGaSnXTTPc0y541VKcyEfGKHzRyT+H471O00BNcMVpIx2Fk6QfxpPBp7tboY4wAsV zFvIpy3rHxtpWQogWHzgx2zmQC7u1pfD8KHDz3TA= 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 4.19 13/54] net: ipv6: fix returned variable type in ip6_skb_dst_mtu Date: Tue, 10 Aug 2021 19:30:07 +0200 Message-Id: <20210810172944.624777424@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172944.179901509@linuxfoundation.org> References: <20210810172944.179901509@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 a8f5410ae0d4..f237573a2651 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -243,7 +243,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